keycloak-config-cli icon indicating copy to clipboard operation
keycloak-config-cli copied to clipboard

Realm Import of file that has groups with IDs fail with 404

Open zts3y opened this issue 2 years ago • 0 comments

Current Behavior

When importing an exported realm file that includes group id, keycloak-config-cli returns Create method returned status Not Found (Code: 404); expected status: Created (201).

This was mentioned in #824 as well, and the user mentioned a workaround in the code.

Expected Behavior

An exported realm file from a supported keycloak installation should be able to import fully.

Steps To Reproduce

1. Export a realm as JSON with all groups and roles
2. Using keycloak-config-cli, point to the freshly exported realm.json file

Environment

  • Keycloak Version: 21.1.1
  • keycloak-config-cli Version: 5.6.1
  • Java Version: 17

Anything else?

No response

zts3y avatar Jun 05 '23 19:06 zts3y