Uploaded image for project: 'MidPoint'
  1. MidPoint
  2. MID-2182

Reconciliation shadow owner subreport can't find owner for non-users

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 3.1 (Sinan)
    • Fix Version/s: 3.5 (Einstein)
    • Component/s: None
    • Labels:
      None

      Description

      I have extended reconciliation report to report all shadows (not only users). But in reconciliation shadow owner subreport, there is UserType value in search filter:

      			<queryString language="mql"><![CDATA[
      		        <filter>
                          <type>
                              <type>UserType</type>
                              <filter>
                                  <ref>
                                      <path>linkRef</path>
                                      <expression>
                                          <script>
                                              <code>
                                              import com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType;
                                              import com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectReferenceType;
                                          
                                              ObjectReferenceType ort = new ObjectReferenceType();
                                              ort.setOid(shadowOid);
                                              ort.setType(ShadowType.COMPLEX_TYPE);
                                              return ort;
                                              </code>
                                          </script>
                                      </expression>
                                  </ref>
                              </filter>
                          </type>
                      </filter>
      			]]></queryString>
      

      I've tried to change to FocusType, but this ended with:

      2015-01-28 14:09:04,219 [] [midPointScheduler_Worker-8] ERROR (net.sf.jasperreports.engine.fill.JRFillSubreport): Fill 1: exception
      java.lang.IllegalArgumentException: The validated object is null
              at org.apache.commons.lang.Validate.notNull(Validate.java:192) ~[commons-lang-2.6.jar:2.6]
              at org.apache.commons.lang.Validate.notNull(Validate.java:178) ~[commons-lang-2.6.jar:2.6]
              at com.evolveum.midpoint.prism.parser.QueryConvertor.parseFilter(QueryConvertor.java:163) ~[prism-3.1-SNAPSHOT.jar:na]
              at com.evolveum.midpoint.prism.parser.QueryConvertor.parseTypeFilter(QueryConvertor.java:365) ~[prism-3.1-SNAPSHOT.jar:na]
              at com.evolveum.midpoint.prism.parser.QueryConvertor.parseFilterContainer(QueryConvertor.java:225) ~[prism-3.1-SNAPSHOT.jar:na]
              at com.evolveum.midpoint.prism.parser.QueryConvertor.parseFilterContainer(QueryConvertor.java:190) ~[prism-3.1-SNAPSHOT.jar:na]
              at com.evolveum.midpoint.prism.parser.QueryConvertor.parseFilterPreliminarily(QueryConvertor.java:825) ~[prism-3.1-SNAPSHOT.jar:na]
              at com.evolveum.prism.xml.ns._public.query_3.SearchFilterType.parseFromXNode(SearchFilterType.java:208) ~[prism-3.1-SNAPSHOT.jar:na]
              at com.evolveum.midpoint.prism.parser.PrismBeanConverter.unmarshalSearchFilterType(PrismBeanConverter.java:433) ~[prism-3.1-SNAPSHOT.jar:na]
              at com.evolveum.midpoint.prism.parser.PrismBeanConverter.unmarshall(PrismBeanConverter.java:155) ~[prism-3.1-SNAPSHOT.jar:na]
      

        Attachments

          Activity

            People

            Assignee:
            vix Ivan Noris
            Reporter:
            vix Ivan Noris
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: