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

ScriptingService doesn't add the new values to whitelist during upgrade

    Details

    • Verified Version/s:
    • Needs QA verification:
      Yes

      Description

      Bug description

      The engine configuration java class whitelist default values are not added during an upgrade.

      How to reproduce the issue

      The steps to reproduce are :

      1. Install openam 13.5.1
      2. upgrade to 6.0.0
      3. Go to configure -> global service -> scripting -> secondary configurations -> AUTHENTICATION_SERVER_SIDE -> secondary configurations -> engineConfiguration
      Expected behaviour

      The Java class whitelist list should contain all the default values that would have been added after an install of openam 6.0.0.

      java.lang.Boolean
      java.lang.Byte
      java.lang.Character
      java.lang.Character$Subset
      java.lang.Character$UnicodeBlock
      java.lang.Double
      java.lang.Float
      java.lang.Integer
      java.lang.Long
      java.lang.Math
      java.lang.Number
      java.lang.Object
      java.lang.Short
      java.lang.StrictMath
      java.lang.String
      java.lang.Void
      java.util.ArrayList
      java.util.HashSet
      java.util.HashMap
      java.util.HashMap$KeyIterator
      java.util.LinkedHashMap
      java.util.LinkedHashSet
      java.util.LinkedList
      java.util.TreeMap
      java.util.TreeSet
      com.sun.identity.shared.debug.Debug
      org.codehaus.groovy.runtime.GStringImpl
      org.codehaus.groovy.runtime.ScriptBytecodeAdapter
      org.forgerock.http.client.*
      org.forgerock.http.Client
      org.forgerock.http.Handler
      org.forgerock.http.Context
      org.forgerock.http.context.RootContext
      java.util.Collections$EmptyList
      org.forgerock.http.protocol.Entity
      org.forgerock.http.protocol.Form
      org.forgerock.http.protocol.Header
      org.forgerock.http.protocol.Headers
      org.forgerock.http.protocol.Message
      org.forgerock.http.protocol.Request
      org.forgerock.http.protocol.RequestCookies
      org.forgerock.http.protocol.Response
      org.forgerock.http.protocol.ResponseException
      org.forgerock.http.protocol.Responses
      org.forgerock.http.protocol.Status
      org.forgerock.util.promise.NeverThrowsException
      org.forgerock.util.promise.Promise
      org.forgerock.util.promise.PromiseImpl
      org.forgerock.openam.scripting.api.http.GroovyHttpClient
      org.forgerock.openam.scripting.api.http.JavaScriptHttpClient
      org.forgerock.openam.scripting.api.ScriptedIdentity
      org.forgerock.openam.scripting.api.ScriptedSession
      groovy.json.JsonSlurper
      
      

      Moreover the test TestScriptWithHttpClientSendMethod should pass.

      Current behaviour

      The list doesn't contain most of the default values listed above hence the TestScriptWithHttpClientSendMethod test doesn't pass

      Work around

      Add the value manually after upgrade

      Code analysis

      The ScriptingSchemaStep class should add the values

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rebecca.hayling Rebecca Hayling [X] (Inactive)
                Reporter:
                alex.robuchon Alex Robuchon
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: