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

Search filters are not resolved when using Roles->Edit role as well as in debug pages.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0 (Newton)
    • Fix Version/s: 3.1 (Sinan)
    • Component/s: None
    • Labels:
      None

      Description

      E.g. when entering the following code:

      <role xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-2a"
            oid="00000000-0000-0000-0000-000000000004"
            version="4">
         <name>
            <orig xmlns="http://prism.evolveum.com/xml/ns/public/types-2">Superuser</orig>
            <norm xmlns="http://prism.evolveum.com/xml/ns/public/types-2">superuser</norm>
         </name>
         <description>Role that gives user full authorization in MidPoint.</description>
         <metadata>
            <createTimestamp>2013-08-26T13:13:10.933+02:00</createTimestamp>
            <createChannel>http://midpoint.evolveum.com/xml/ns/public/gui/channels-2#init</createChannel>
            <modifyTimestamp>2013-08-27T14:41:58.144+02:00</modifyTimestamp>
            <modifierRef oid="00000000-0000-0000-0000-000000000002"/>
            <modifyChannel>http://midpoint.evolveum.com/xml/ns/public/gui/channels-2#user</modifyChannel>
         </metadata>
         <authorization id="1">
            <action>http://midpoint.evolveum.com/xml/ns/public/security/authorization-2#all</action>
         </authorization>
         <approverRef xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-2a"
                      type="c:UserType">
            <filter>
               <q:equal xmlns:q="http://prism.evolveum.com/xml/ns/public/query-2"
                        xmlns:mr="http://prism.evolveum.com/xml/ns/public/matching-rule-2">
                  <q:matching>polyStringOrig</q:matching>
                  <q:path>c:name</q:path>
                  <q:value>administrator</q:value>
               </q:equal>
            </filter>
         </approverRef>
      </role>
      

      In Roles->Edit role the ApproverRef is lost (and any existing approver ref's are removed).

      In debug pages, at least "Target oid reference must not be null." error message is shown (but filter is not resolved anyway).

      It should be checked whether search filters are resolved at other places where user can enter XML representation of PrismObjects.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mederly Pavol Mederly
              Reporter:
              mederly Pavol Mederly
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: