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

External CTS password not changed and errors when Transport key exists

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 14.0.0, 14.1.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Rank:
      1|hzu167:

      Description

      jh4. Bug description

      When SMS transport key is installed into the instance, and doing the
      External CTS password configuration, there is error like
      Caused by: org.forgerock.json.JsonValueException: /content/amconfig.org.forgeroc
      k.services.cts.store.external.section/org.forgerock.services.cts.store.password-
      encrypted: Expecting a java.lang.String
      at org.forgerock.json.JsonValue.expect(JsonValue.java:745)
      at org.forgerock.json.JsonValue.asString(JsonValue.java:635)
      at org.forgerock.openam.core.rest.sms.SmsServerPropertiesResource.createServerInstanceAttributesValuesForUpdate(SmsServerPropertiesResource.java:1093)
      at org.forgerock.openam.core.rest.sms.SmsServerPropertiesResource.updateServerInstance(SmsServerPropertiesResource.java:1045)
      at org.forgerock.openam.core.rest.sms.SmsServerPropertiesResource.update(SmsServerPropertiesResource.java:930)
      ... 108 more

      How to reproduce the issue

      a. Install a AM cluster
      b. Setup External CTS with username and password
      (no need to enable them or have any physical CTS

      • just populate them)
        c. Now install amster and setup the SMS transport key
        d. Restart AM
        e. Test amster able to do a export-config to make sure password-encrypted
        work
        f. Now goto edit the External CTS password. and the above exception happens. The external CTS password cannot be changed.
      Expected behaviour
      External CTS password changed
      
      Current behaviour
      The XUI has red error box with any message and the CoreSystem
      logs show failure in
      
      Caused by: org.forgerock.json.JsonValueException: /content/amconfig.org.forgerock.services.cts.store.external.section/org.forgerock.services.cts.store.password-
      encrypted: Expecting a java.lang.String
              at org.forgerock.json.JsonValue.expect(JsonValue.java:745)
              at org.forgerock.json.JsonValue.asString(JsonValue.java:635)
              at org.forgerock.openam.core.rest.sms.SmsServerPropertiesResource.createServerInstanceAttributesValuesForUpdate(SmsServerPropertiesResource.java:1093)
              at org.forgerock.openam.core.rest.sms.SmsServerPropertiesResource.updateServerInstance(SmsServerPropertiesResource.java:1045)
              at org.forgerock.openam.core.rest.sms.SmsServerPropertiesResource.update(SmsServerPropertiesResource.java:930)
              ... 108 more
      

      Work around

      Remove the SMS Transport key from the instance and restart instance

      Behavioural analysis

      It seems that when the instance have SMS transport key, XUI submit the JSON request when CTS password save with password-encrypted too.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            chee-weng.chea C-Weng C
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: