keycloak-controller icon indicating copy to clipboard operation
keycloak-controller copied to clipboard

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

Open patrickleet opened this issue 5 years ago • 0 comments

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:

patrickleet avatar Oct 22 '20 17:10 patrickleet