Skip to content
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

Arrays sorting is non-deterministic and results in lots of changes in DB #39

Open
patrickleet opened this issue Oct 22, 2020 · 0 comments

Comments

@patrickleet
Copy link
Contributor

patrickleet commented Oct 22, 2020

Is this a request for help?:


Is this a BUG REPORT or FEATURE REQUEST? (choose one):

BUG REPORT

Version of Keycloak-controller:

latest (5 hours ago on 10/22 - no version tag)

Version of Keycloak:

11

Version of Kubernetes:

16

What happened:

Arrays are non-deterministic / unsorted, which results in updates being made over and over just to change the order of the array:

change defaultClientScopes from [profile, roles, email] to [email, profile, roles]"

I've seen it happen with redirectURIs as well

What you expected to happen:

If the values of the array sorted are the same, don't update the resource

How to reproduce it (as minimally and precisely as possible):

Happens with normal usage

Anything else we need to know:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant