Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-12026

Self-service user registration gets "Bad Request" on LDAP error 19

    Details

    • Target Version/s:
    • Sprint:
      AM Sustaining Sprint 45, AM Sustaining Sprint 46, AM Sustaining Sprint 47, AM Sustaining Sprint 48, AM Sustaining Sprint 49
    • Story Points:
      3
    • Needs backport:
      Yes
    • Support Ticket IDs:
    • Verified Version/s:
    • Needs QA verification:
      Yes
    • Functional tests:
      No
    • Are the reproduction steps defined?:
      Yes and I used the same an in the description

      Description

      Bug description

      When registering with self-service, in the case the datastore returns an ldap exception 19 (unique attribute conflict), HTTP 400 'Bad Request' error is returned.

      How to reproduce the issue

      1. Enable attribute uniqueness on a DJ datastore, for example on the 'mail' attribute. https://backstage.forgerock.com/docs/ds/5.5/admin-guide/#enable-unique-attributes
      2. Enable self-service user registration with email verification disabled.
      3. Register a user with a 'mail' that already exists in the datastore
      4. AM debug log should show. "ERROR: IdServicesImpl.create: Create: Fatal Exception
        Message:Plug-in org.forgerock.openam.idrepo.ldap.DJLDAPv3Repo encountered an ldap exception 19: A unique attribute conflict was detected"
      Expected behaviour

      An error message which helps explain that some input is not unique.

      Current behaviour

      REST endpoint userRegistration?_action=submitRequirements returns

      {"code":400,"reason":"Bad Request","message":"Bad Request"}

      XUI shows "Unable to register your account. Bad Request"

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lawrence.yarham Lawrence Yarham
                Reporter:
                andrew.dunn Andrew Dunn [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: