Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Done
-
RH-SSO-7.4.7, 14.0.0
-
None
Description
If there is a client with Authorization enabled, importing clients is failed as follows.
16:49:50,883 FATAL [org.keycloak.services] (ServerService Thread Pool – 54) Error during startup: java.lang.RuntimeException: Script upload is disabled
at org.keycloak.authorization.policy.provider.js.JSPolicyProviderFactory.updatePolicy(JSPolicyProviderFactory.java:125)
at org.keycloak.authorization.policy.provider.js.JSPolicyProviderFactory.onImport(JSPolicyProviderFactory.java:70)
at org.keycloak.models.utils.RepresentationToModel.toModel(RepresentationToModel.java:2449)
This does not depend on whether importing it from the admin console or not.
When setting "-Dkeycloak.profile.feature.upload_scripts=enabled", the import succeeds, but this workaround is usually not acceptable.