Uploaded image for project: 'Keycloak'
  1. Keycloak
  2. KEYCLOAK-18682

Cannot import clients if there is a client with Authorization enabled.

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Done
    • RH-SSO-7.4.7, 14.0.0
    • 15.0.0
    • Authorization Services
    • 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.

      Attachments

        Activity

          People

            psilva@redhat.com Pedro Igor Craveiro
            hitachi_jboss6 義之 田畑
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: