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

Latest Script Version is not seen when Upgraded

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 6.0.0.4
    • Fix Version/s: None
    • Component/s: scripting, upgrade
    • Labels:
    • Support Ticket IDs:

      Description

      Bug description

       Latest script version is not seen if user upgraded to a newer AM version. 

      How to reproduce the issue

      1. Installed OpenAM 13 onwards / AM instance
      2. Edit default OIDC Claims Script ( [Realm] > Scripts > OIDC Claims Script )
        /*
        * Copyright 2014-2017 ForgeRock AS. All Rights Reserved
        *
        * Use of this code requires a commercial software license with ForgeRock AS.
        * or with one of its affiliates. All use shall be exclusively subject
        * to such license between the licensee and ForgeRock AS.
        */
        import com.iplanet.sso.SSOException
        import com.iplanet.sso.SSOException <-- adding this to modify the default Script
        import com.sun.identity.idm.IdRepoException
        import org.forgerock.oauth2.core.exceptions.InvalidRequestException
        import org.forgerock.oauth2.core.UserInfoClaims
        import org.forgerock.openidconnect.Claim
        
      1. Upgrade to a newer AM version instance
      2. Create a new Script ( [Realm]> Scripts > New Script )
        Name: Test
        Script Type : OIDC Claims Script
      Expected behaviour
      Latest OIDC script version should be displayed

      From Test Script:

      /*
      * Copyright 2014-2018 ForgeRock AS. All Rights Reserved
      *
      * Use of this code requires a commercial software license with ForgeRock AS.
      * or with one of its affiliates. All use shall be exclusively subject
      * to such license between the licensee and ForgeRock AS.
      */
      import com.iplanet.sso.SSOException
      import com.sun.identity.idm.IdRepoException
      import org.forgerock.oauth2.core.exceptions.InvalidRequestException
      import org.forgerock.oauth2.core.UserInfoClaims
      import org.forgerock.openidconnect.Claim
      ..........
      return new UserInfoClaims((Map)computedClaims, (Map)compositeScopes)
       
      Current behaviour
      Modified default OIDC Script is been displayed. 

      From Test Script :

      /*
      * Copyright 2014-2017 ForgeRock AS. All Rights Reserved
      *
      * Use of this code requires a commercial software license with ForgeRock AS.
      * or with one of its affiliates. All use shall be exclusively subject
      * to such license between the licensee and ForgeRock AS.
      */
      import com.iplanet.sso.SSOException
      import com.iplanet.sso.SSOException
      import com.sun.identity.idm.IdRepoException
      import org.forgerock.oauth2.core.exceptions.InvalidRequestException
      import org.forgerock.oauth2.core.UserInfoClaims
      import org.forgerock.openidconnect.Claim

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              wanning.tan WanNing Tan
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: