[midPoint] Search look up table using Midpoint Java Rest Client 4.4
Matus Macik
matus.macik at evolveum.com
Wed Feb 23 15:53:38 CET 2022
Hello,
I tried the code snipped and actually it's a bug in the MidPoint Client I was able to reproduce. I have created a Jira issue under [ https://jira.evolveum.com/browse/MID-7686 | https://jira.evolveum.com/browse/MID-7686 ] and also already pushed a fix. You should find it on the current master branch of the MidPoint Client project.
--
Best Regards,
Matus Macik | Developer and Identity Management Engineer
matus.macik at evolveum.com | www.evolveum.com
Evolveum
From: "midPoint General Discussion" <midpoint at lists.evolveum.com>
To: "midPoint General Discussion" <midpoint at lists.evolveum.com>
Cc: "Tao Jiang" <t.jiang at unsw.edu.au>
Sent: Monday, February 21, 2022 7:14:05 AM
Subject: [midPoint] Search look up table using Midpoint Java Rest Client 4.4
Dear Midpoint community,
I have tried to use Midpoint Java Rest Client (version 4.4) to search Look up table using the code below:
public void searchLookupTable() throws Exception {
Service service = getService();
ItemPathType namePath = new ItemPathType();
namePath .setValue( "name" );
SearchResult<LookupTableType> result = (SearchResult<LookupTableType>) service .lookupTables().search().queryFor(LookupTableType. class ).item( namePath ).eq( "UAC Lookup" ).get();
}
The last statement ran into java.lang.NullPointerException.
I can confirm the “UAC Lookup” look up table exists by execute the following query via curl command.
<query xmlns= [ http://prism.evolveum.com/xml/ns/public/query-3 | http://prism.evolveum.com/xml/ns/public/query-3 ] >
<filter>
<equal>
<path>name</path>
<value>UAC Lookup</value>
</equal>
</filter>
</query>
Could anyone tell me what’s wrong with the java code?
Thank you very much in advance!
Kind regards,
Tao Jiang
UNSW IT
Email: [ mailto:t.jiang at unsw.edu.au |
t.jiang at unsw.edu.au ]
Phone: +61 2 9065 8771
_______________________________________________
midPoint mailing list
midPoint at lists.evolveum.com
https://lists.evolveum.com/mailman/listinfo/midpoint
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20220223/237148e9/attachment.htm>
More information about the midPoint
mailing list