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

Cannot create userstore after upgrade

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 7.0.0
    • None
    • None
    • Rank:
      1|hzygx3:
    • 0
    • No
    • None

    Description

      Bug description

      After upgrading from 6.0.0.6 to 7.0.0 snapshot, using XUI admin console to create a new identity store results in a red error box appearing and administrator is not able to continue with creation.

      How to reproduce the issue

      1. Deploy AM 6.0.0.6, embedded config ad user store.
      2. Using XUI, login as amadmin, create a sub-realm, e.g. subscribers.
      3. In the sub-realm, delete the embedded user store and create an external OpenDJ user store.
      4. Stop AM's container, deploy AM 7.0.0 snapshot, restart the container and perform the AM upgrade.
      5. Login as amadmin, navigate to the sub-realm and attempt to create a new datastore.  Select the datastore type (can choose any, all result in the same behaviour).
      Expected behaviour
      Chosen datastore type is listed, no error message appears and administrator is able to enter a name for datastore and click create.
      Current behaviour
      When datastore type is selected, a red error message box appears with no text inside it.  A name for the datastore can be entered but clicking create has no effect.
      
      In CoreSystem, following output is seen:
      
      Caused by: java.lang.NullPointerException: The attribute sunIdRepoAttributeCombiner has no attribute schema in schema LDAPv3ForOpenDS
              at org.forgerock.openam.core.sms.SmsJsonConverter.getAttributeSchema(SmsJsonConverter.java:347)
              at org.forgerock.openam.core.sms.SmsJsonConverter.isSingleTypeAttribute(SmsJsonConverter.java:340)
              at org.forgerock.openam.core.sms.SmsJsonConverter.toJson(SmsJsonConverter.java:235)
              at org.forgerock.openam.core.sms.SmsJsonConverter.toJson(SmsJsonConverter.java:191)
              at org.forgerock.openam.core.sms.SmsJsonConverter.toJson(SmsJsonConverter.java:165)
              at org.forgerock.openam.core.rest.sms.SmsResourceProvider.createTemplate(SmsResourceProvider.java:353)
              at org.forgerock.openam.core.rest.sms.SmsResourceProvider.template(SmsResourceProvider.java:340)
      
      The behaviour is the same in a newly created realm (i.e. realm created after upgrade).
      
      It is possible to view, edit and delete existing user stores.
      
      Only an upgraded AM instance is affected.  Configuring an AM instance from the same deployed 7.0.0 snapshot war enables expected behaviour.

      Work around

      None.

      Attachments

        Issue Links

          Activity

            People

              mark.leonard Mark Leonard
              lawrence.yarham Lawrence Yarham
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: