Details
-
Type:
Bug
-
Status: Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 4.4.1
-
Fix Version/s: backlog
-
Component/s: Connectors, Provisioning
-
Labels:None
-
Subscription:No subscription (community)
Description
I have a connector based on REST Connector superclass, configured to use pagedSearchEstimate
<configuredCapabilities xmlns:cap="http://midpoint.evolveum.com/xml/ns/public/resource/capabilities-3">
<cap:pagedSearch/>
<cap:countObjects>
<cap:simulate>pagedSearchEstimate</cap:simulate>
</cap:countObjects>
</configuredCapabilities>
However, it doesn't work as expected; when I try to load objects on resource, I'm getting following:
2022-03-21 14:14:27,032 [] [http-nio-8770-exec-10] ERROR (com.evolveum.midpoint.web.component.data.SelectableBeanContainerDataProvider): Couldn't count objects.
java.lang.NullPointerException: null
at com.evolveum.midpoint.provisioning.impl.shadows.SearchHelper.countResourceObjects(SearchHelper.java:500) at com.evolveum.midpoint.provisioning.impl.shadows.SearchHelper.countResourceObjects(SearchHelper.java:500) at com.evolveum.midpoint.provisioning.impl.shadows.SearchHelper.countObjects(SearchHelper.java:478)
...
In the attachment you can find whole stacktrace.