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

Report - filter with expression in assignmentTargetSearch returns error

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.2
    • 4.3
    • Reporting
    • MP 4.2 support
      git describe: v4.2support-5-g32d4296437

    • Active subscription

    Description

      in column>import>expression
      While using assignmentTargetSearch for assignment lookup. The expression in equals filter is not recognized and returns null. Stack trace attached as file.

       <column>
      
      <!-- Other column parameters -->
      
      <import>
             <expression>
               <assignmentTargetSearch>
                                  <targetType>c:OrgType</targetType>
                                  <filter>
                                      <q:and>
                                      <q:equal>
                                          <q:path>c:name</q:path>
                                          <expression>
                                              <script>
                                                  <code>
                                                      return input
                                                  </code>
                                              </script>
                                          </expression>
                                      </q:equal>
                                      <q:ref>
                                          <q:path>c:archetypeRef</q:path>
                                          <value xsi:type="t:ObjectReferenceType" oid="fooBaar" />
                                      </q:ref>
                                      </q:and>
                                  </filter>
                              </assignmentTargetSearch>
                  </expression>
      </import>
       </column>
      

      Attachments

        Activity

          People

            mmacik Matus Macik
            mmacik Matus Macik
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: