You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We were using keycloak-config-cli:5.6.0 for keycloak 21.1.1 and recently updated to the latest keycloak-config-cli:5.8.0 release.
Upon applying our configuration with the tool we noticed that the server would response with ERROR [org.keycloak.services.error.KeycloakErrorHandler] (executor-thread-0) Uncaught server error: javax.ws.rs.WebApplicationException: Feature not enabled and have the keycloak-config-cli tool exist with an error status.
Further debugging outlined that this was due to the 'client-policies' feature being disabled on our instance.
The resolution to this issue might be as simple as 'user error' (see below regarding default configuration settings) but perhaps it might also be useful to have conditional behaviour based on the enabled/disabled feature flags.
Proposed Solution
Conditionally run configuration details based on active feature flags of the server
Environment
Keycloak Version: 21.1.1
keycloak-config-cli Version: 5.8.0
Java Version: 17
Additional information
As a work around we were able to simply remove the attributes from our base config (which came from a keycloak 15 realm dump):
And on removing these configuration attributes we were able to again get successful runs using the latest keycloak-config-cli. (the server still responds with the 'Feature not enabled' error logs but this is acceptable for us provided the keycloak-config-cli execution completes.
Acceptance Criteria
[] As a user with a previous keycloak 15 (pre quarkus/feature-flags) realm dump
[] Using a quarkus based keycloak implementation with selected feature flags enabled/disabled
[] Running the keycloak-config-cli
[] Should result in a valid configuration application (omitting configuration if the feature is disabled; ie client-polices)
The text was updated successfully, but these errors were encountered:
With Keycloak 25.0.2 and the docker image keycloak-config-cli:6.1.5-25.0.1 the error message is still raised, suggesting keycloak-config-cli is not checking for enabled features.
Our server info, listing the enabled and disabled features:
As you can see CLIENT_POLICIES is indeed disabled.
The stack trace of the error points to this location inside of Keycloak:
Problem Statement
We were using keycloak-config-cli:5.6.0 for keycloak 21.1.1 and recently updated to the latest keycloak-config-cli:5.8.0 release.
Upon applying our configuration with the tool we noticed that the server would response with
ERROR [org.keycloak.services.error.KeycloakErrorHandler] (executor-thread-0) Uncaught server error: javax.ws.rs.WebApplicationException: Feature not enabled
and have the keycloak-config-cli tool exist with an error status.Further debugging outlined that this was due to the 'client-policies' feature being disabled on our instance.
The resolution to this issue might be as simple as 'user error' (see below regarding default configuration settings) but perhaps it might also be useful to have conditional behaviour based on the enabled/disabled feature flags.
Proposed Solution
Conditionally run configuration details based on active feature flags of the server
Environment
Additional information
As a work around we were able to simply remove the attributes from our base config (which came from a keycloak 15 realm dump):
And on removing these configuration attributes we were able to again get successful runs using the latest keycloak-config-cli. (the server still responds with the 'Feature not enabled' error logs but this is acceptable for us provided the keycloak-config-cli execution completes.
Acceptance Criteria
The text was updated successfully, but these errors were encountered: