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

Negation of the authorization generates server error 500

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.2 (Tycho)
    • Fix Version/s: 3.3 (Lincoln)
    • Component/s: GUI
    • Labels:
      None

      Description

      This authorization works fine.

         <authorization id="1">
            <action>http://midpoint.evolveum.com/xml/ns/public/security/authorization-model-3#assign</action>
            <phase>request</phase>
            <object>
               <type>UserType</type>
               <orgRef xmlns:tns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
                       oid="c3908c48-95aa-4a39-97b1-9b2588de5266"
                       type="tns:OrgType"><!-- test1 --></orgRef>
            </object>
            <target>
               <type>RoleType</type>
               <filter>
                        <q:equal>
                           <q:path>roleType</q:path>
                           <q:value>ech</q:value>
                        </q:equal>
               </filter>
            </target>
         </authorization>
      

      This authorization negates the above authorization, but generates server error 500.

         <authorization id="1">
            <action>http://midpoint.evolveum.com/xml/ns/public/security/authorization-model-3#assign</action>
            <phase>request</phase>
            <object>
               <type>UserType</type>
               <orgRef xmlns:tns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
                       oid="c3908c48-95aa-4a39-97b1-9b2588de5266"
                       type="tns:OrgType"><!-- test1 --></orgRef>
            </object>
            <target>
               <type>RoleType</type>
               <filter>
                     <q:not>
                        <q:equal>
                           <q:path>roleType</q:path>
                           <q:value>ech</q:value>
                        </q:equal>
                     </q:not>
               </filter>
            </target>
         </authorization>
      

        Attachments

          Activity

            People

            Assignee:
            rpudil Roman Pudil
            Reporter:
            rpudil Roman Pudil
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: