Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-14452

External DS misconfigured for postalAddress and address2

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 7.0.0
    • Fix Version/s: 7.0.0
    • Component/s: None
    • Labels:
    • Target Version/s:
    • Verified Version/s:
    • Story Points:
      1
    • Sprint:
      2020.04 - IDM, 2020.06 - IDM, 2020.08 - IDM

      Description

      While testing bulk csv import I discovered that "postalAddress" and "address2" were getting merged together when read back from external DS.

      {
         "_id":"f93d21ad-8115-494f-9c60-9e4fe4535377",
         "_rev":"00000000e9f328a4",
         "userName":"bob",
         "accountStatus":"active",
         "postalCode":"99999",
         "stateProvince":"OR",
         "postalAddress":[
            "bob-add2",
            "bob-addr"
         ],
         "description":"bob-desc",
         "country":"US",
         "address2":[
            "bob-add2",
            "bob-addr"
         ],
         "city":"bob-city",
         "givenName":"bob-givenName",
         "sn":"bob-sn1",
         "telephoneNumber":"5555555555",
         "mail":"bob@bob.com",
         "preferences":{
            "marketing":false,
            "updates":false
         }
      }
      

      Upon further investigation, the reason appears to be because /openidm/openidm-samples/repo-config/src/main/resources/opendj/conf/repo.ds-explicit-managed-user.json maps both to the same LDAP attribute:

                "postalAddress": {
                  "type": "simple",
                  "ldapAttribute": "postalAddress"
                },
      ...
                "address2": {
                  "type": "simple",
                  "ldapAttribute": "postalAddress"
                },
      

      This issue needs to be fixed in:

      • IDM master
      • forgeops

      It will most likely need to be backported, because it has been this way since 2018 and may have customer impact. cc Matthias Grabiak

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                katie.gonzalez Katie Gonzalez
                Reporter:
                travis.haagen Travis Haagen
                QA Assignee:
                Alexander Dracka
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: