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

REST-SMS ignores i18n labels for ChoiceValues

    Details

    • Sprint:
      2017.10 "Järnefelt" Turing
    • Needs backport:
      Yes
    • 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

      The XUI admin console ignores the i18n labels defined for ChoiceValue elements and just displays the raw values.

      How to reproduce the issue

      For example:

      1. Create an OAuth 2.0 client
      2. Navigate to Signing and Encryption
      3. Look at the User info response format drop-down list
      Expected behaviour

      Should have "User info JSON response format.", "User info signed JWT response format." etc

      Current behaviour

      Shows raw codes used by the backend: JSON, SIGNED_THEN_ENCRYPTED_JWT etc.

      Work around

      Manually translate the labels in your head.

      Code analysis

      Appears to be REST-SMS. Response from the schema call by the XUI:

      "userinfoResponseFormat":{"title":"User info response format.","description":"The user info endpoint offers different ou
          tput format. See http://openid.net/specs/openid-connect-core-1_0.html#UserInfoResponse","propertyOrder":null,"required":true,"enum":["JSON","SIGNED_JWT","    ENCRYPTED_JWT","SIGNED_THEN_ENCRYPTED_JWT"],"options":{"enum_titles":["JSON","SIGNED_JWT","ENCRYPTED_JWT","SIGNED_THEN_ENCRYPTED_JWT"]},"type":"string","e
          xampleValue":""}

      However, the AgentService.xml has i18n values for each of these ChoiceValues and they are defined in agentService.properties. Same is true of other ChoiceValues in other schema (e.g. JwtProofOfPossession auth module responseEncryptionMethod etc).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rebecca.hayling Rebecca Hayling [X] (Inactive)
                Reporter:
                neil.madden Neil Madden
              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: