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

sm.getSchemaManager has a typo including a comma

    XMLWordPrintable

    Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 7.0.0
    • 7.1.0, 7.0.1
    • idrepo
    • AM 7.0.0
    • AM Sustaining Sprint 79
    • 1

      Description

      Bug description

      https://stash.forgerock.org/projects/GA/repos/am-customer-ga/browse/openam-core/src/main/java/org/forgerock/openam/sm/SmsAnnotatedServiceRegistry.java?at=refs%2Ftags%2F7.0.0#219

       

      sm.getSchemaManager(REPO_SERVICE, "1.0,")

       

      This call results in the following error

       

      The provided value "ou=1.0,,ou=sunIdentityRepositoryService,ou=services,dc=openam,dc=forgerock,dc=org" could not be parsed as a valid distinguished name because character ',' at position 7 is not allowed in an attribute name

       

      Looks like a typo and should not include the trailing ','

      How to reproduce the issue

      Issue occurs when creating a custom IDRepo that calls 

      sm.getSchemaManager

      Expected behaviour
      This call should not fail
      Current behaviour
      The provided value "ou=1.0,,ou=sunIdentityRepositoryService,ou=services,dc=openam,dc=forgerock,dc=org" could not be parsed as a valid distinguished name because character ',' at position 7 is not allowed in an attribute name
      

      Work around

      OPTIONAL - If you have a workaround, please put the details here (remove this text)

      Code analysis

      https://stash.forgerock.org/projects/GA/repos/am-customer-ga/browse/openam-core/src/main/java/org/forgerock/openam/sm/SmsAnnotatedServiceRegistry.java?at=refs%2Ftags%2F7.0.0#219

       

      actionsam-customer-ga/openam-core/src/main/java/org/forgerock/openam/sm/SmsAnnotatedServiceRegistry.java
      Line 219 sm.getSchemaManager(REPO_SERVICE, "1.0,")
      

        Attachments

          Activity

            People

            adam.heath Adam Heath
            william.hepler William Hepler
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: