Repository navigation
MapUserProvider in KC20 needs to store username compatible with KC19 … - #14748
Conversation
0edb772 to
88f83c4
Compare
There was a problem hiding this comment.
Will this work with entityversion 1?
There was a problem hiding this comment.
It should work now when the migration of the entity was fixed in the last force-push. Each entity loaded from the database should have the usernameWithCase field filled. Or am I missing something?
There was a problem hiding this comment.
The migration fixed the functional part when the username is loaded from JSON, thank you.
Will the V1 have the this.usenameWithCase field filled when loading the value from column directly in the next line?
There was a problem hiding this comment.
I see, it won't. I'll add fallback to username field in case of usernameWithCase is null.
88f83c4 to
52f7437
Compare
There was a problem hiding this comment.
I like the new behavior that when the realm attribute is set to false, the username is returned in a case-insensitive format. I believe some of the tests need to be reverted to reflect that. Please see more comments below.
9933de3 to
fd35a44
Compare
…to be no-downtime-upgradable Closes keycloak#14678
fd35a44 to
0775183
Compare
There was a problem hiding this comment.
I have reviewed the changes and tests them with Keycloak 19.0.3 and this version running against the same database using JPA map storage. I tested it with different scenarios where both write their entity version to the DB, and it works fine. Thank you for preparing this change!
…to be no-downtime-upgradable
Closes #14678