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
When the environment variable IMPORT_REMOTESTATE_ENABLED=true is set, remote state is not working for "clientScopes" and "scopeMappings" resources. All "clientScopes" and "scopeMappings" which are not present in the json import files are deleted from keycloak.
Expected Behavior
When the environment variable IMPORT_REMOTESTATE_ENABLED=true, only "clientScopes" and "scopeMappings" present in the remote state and not present in the json import files should be deleted from keycloak.
Steps To Reproduce
1. Set env var IMPORT_REMOTESTATE_ENABLED=true
2. Create a ClientScope and a ScopeMapping manually in keycloak
3. Start a keycloak-config-cli with a JSON import file containing ClientScopes and ScopeMappings
4. Manually created ClientScope and ScopeMapping are deleted from keycloak.
Environment
Keycloak Version: 22.0.4
keycloak-config-cli Version: 5.9.0
Java Version: 17.0.8
Anything else?
No response
The text was updated successfully, but these errors were encountered:
Hello @Skg-754, We encountered a compatibility issue between keycloak-config-cli:5.9.0 and Keycloak 22.0.4. Specifically, when trying to import the configuration, an UnrecognizedPropertyException error was thrown due to the features field not being recognized by the Keycloak version. Question: Could you please confirm the exact tag of keycloak-config-cli that was used when generating the responses in the logs? It seems like there might be a compatibility issue, and we want to ensure that the correct tag is being used.
Hello @Skg-754 here is the correct expected behavior
Expected Behavior:
When the environment variable IMPORT_REMOTESTATE_ENABLED=true, all resources, including "clientScopes" and "scopeMappings," that are present in the remote state should not be deleted. Instead, they should be updated with the data from the JSON import files. Only the resources that are not present in the remote state but are included in the JSON import files should be added to Keycloak.
Current Behavior
When the environment variable IMPORT_REMOTESTATE_ENABLED=true is set, remote state is not working for "clientScopes" and "scopeMappings" resources. All "clientScopes" and "scopeMappings" which are not present in the json import files are deleted from keycloak.
Expected Behavior
When the environment variable IMPORT_REMOTESTATE_ENABLED=true, only "clientScopes" and "scopeMappings" present in the remote state and not present in the json import files should be deleted from keycloak.
Steps To Reproduce
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: