-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removing all group attributes no longer works with keycloak-admin-client (java) #25677
Comments
Adding both areas And marking as |
I am unmarking as When testing with the admin console with the scenario like this:
On the other hand, when testing with admin client, then the group in the @danielFesenmeyer If you have a chance to send PR for this, it would be welcome. |
@mposolda OK, I've just started working on it. |
…ak-admin-client (java) Closes keycloak#25677 Signed-off-by: Daniel Fesenmeyer <daniel.fesenmeyer@bosch.com>
…ak-admin-client (java) Closes #25677 Signed-off-by: Daniel Fesenmeyer <daniel.fesenmeyer@bosch.com>
@danielFesenmeyer Feel free to send PR also to |
…ak-admin-client (java) Closes keycloak#25677 Signed-off-by: Daniel Fesenmeyer <daniel.fesenmeyer@bosch.com> (cherry picked from commit baafb67)
…ak-admin-client (java) Closes keycloak#25677 Signed-off-by: Daniel Fesenmeyer <daniel.fesenmeyer@bosch.com> Signed-off-by: ShefeeqPM <86718986+ShefeeqPM@users.noreply.github.com>
Before reporting an issue
Area
admin/client/java
Describe the bug
With Keycloak 22.x and previous versions, it was possible to remove all group attributes like this:
This does no longer work with Keycloak 23.0.3. The group attributes remain unchanged.
Version
23.0.3
Expected behavior
All group attributes should be removed.
Actual behavior
The group attribues remain unchanged.
How to Reproduce?
See example code in the description.
Anything else?
Seems this has been introduced by this commit: #22700.
Because there is now this annotation on GroupRepresentation
@JsonInclude(JsonInclude.Include.NON_EMPTY)
This annotation causes the empty attributes not to be included in the request, and being ignored on the server, because the server removes attributes only when they are empty, not null.
The text was updated successfully, but these errors were encountered: