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

OATH module broken in Japanese locale

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 13.5.1, 13.5.2, 14.0.0, 5.5.1, 6.0.0, 6.0.0.1, 6.0.0.2, 6.0.0.3, 6.0.0.4, 6.0.0.5, 6.5.0, 6.0.0.6, 6.5.0.1, 6.0.0.7, 6.5.1, 6.5.0.2, 6.5.2, 6.5.2.1, 5.5.2
    • Fix Version/s: 13.5.3, 6.0.1, 5.5.2, 7.0.0, 6.5.3
    • Component/s: authentication
    • Labels:
    • Sprint:
      AM Sustaining Sprint 68, AM Sustaining Sprint 69, AM Sustaining Sprint 70, AM Sustaining Sprint 71, AM Sustaining Sprint 72, AM Sustaining Sprint 73
    • Story Points:
      2
    • Needs backport:
      No
    • Support Ticket IDs:
    • Needs QA verification:
      No
    • Functional tests:
      No
    • Are the reproduction steps defined?:
      Yes and I used the same an in the description

      Description

      Bug description

      The problem is that the OATH.xml callback description in the JA locale is not synced with the default/default_en version and hence the OATH works on other languages it does not in Japanese due to the fact that there only for Japanese there is this language customization.

      Only symptom of this is on the Authentication logs has this

      amLoginModule:10/20/2019 02:21:09:318 PM UTC: Thread[http-nio-8080-exec-6,5,main]: TransactionId[1aa5b667-c67e-419b-af1a-443d2a2d98f4-14091]
      ERROR: getCallback, state 2 > 1
      

      How to reproduce the issue

      1. Run OATH with Accept-Language "ja"
      Expected behaviour
      OATH should work on 
      
      Current behaviour
      UI reports authentication fail
      

      Work around

      1. Locate OATH.xml. If in exploded form

      $ find webapps/openam/ -name OATH.xml 
      webapps/openam/config/auth/default_en/OATH.xml
      webapps/openam/config/auth/default_ja/OATH.xml
      webapps/openam/config/auth/default/OATH.xml
      

      Change default_ja/OATH.xml to match the same callback as en

      >  "Portions Copyrighted 2012 Open Source Solution Technology Corporation"
      33,34c32
      <     <Callbacks length="0" order="1" timeout="120" header="#WILL NOT BE SHOWN#" />
      <     <Callbacks length="2" order="2" timeout="120" header="Sign in">
      ---
      >     <Callbacks length="2" order="1" timeout="120" header="??????? OATH ????????">
      36c34
      

      Code analysis

      Caused by OPENAM-8335 not updating the Japanese Authentication callback file.
      So the same changes need to be done on the localization file

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: