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

AvoidDuplicateValues fails when combined with case-insensitive values

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 3.1.1
    • 3.4 (Heisenberg)
    • None
    • None

    Description

      Having OpenDJ resource (originally opendj-localhost-resource-sync-no-extension-advanced-test.xml), with AvoidDuplicateValues set:

      <consistency>
         <avoidDuplicateValues>true</avoidDuplicateValues>
      </consistency>
      

      Then having the employeeType attribute defined:

      <attribute>
         <c:ref>ri:employeeType</c:ref>
         <displayName>Employee Type</displayName>
         <matchingRule xmlns:mr="http://prism.evolveum.com/xml/ns/public/matching-rule-3">mr:stringIgnoreCase</matchingRule>
         <tolerant>false</tolerant>
         <tolerantValuePattern>^res-.*</tolerantValuePattern>
         <outbound>
            <source>
               <c:path>$user/employeeType</c:path>
            </source>
         </outbound>
      </attribute>
      

      First, create a user "test" having employeeType="test" (with assigned OpenDJ account). Save.

      Then open this user and change employeeType from "test" to "TEST". Save.

      Result: OpenDJ account will have no employeeType value.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: