You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.
Area
core
Describe the bug
When a user logs in that has an email address, the default configuration runs the DuplicateEmailValidator. This triggers two DB query if the user has an email address set.
This is a regression, as in previous versions this didn't happen before declarative user was there in KC24.
Version
main
Regression
The issue is a regression
Expected behavior
On log in, the data of the user is assumed to be unchanged, and it would be about invalid and possibly missing data.
So IMHO there shouldn't be a DB query for this, and the test should be skipped. It should only trigger on changed data in the profile.
Actual behavior
The email address is used to query the database twice from the validator.
Before reporting an issue
Area
core
Describe the bug
When a user logs in that has an email address, the default configuration runs the
DuplicateEmailValidator
. This triggers two DB query if the user has an email address set.This is a regression, as in previous versions this didn't happen before declarative user was there in KC24.
Version
main
Regression
Expected behavior
On log in, the data of the user is assumed to be unchanged, and it would be about invalid and possibly missing data.
So IMHO there shouldn't be a DB query for this, and the test should be skipped. It should only trigger on changed data in the profile.
Actual behavior
The email address is used to query the database twice from the validator.
How to Reproduce?
--log-level="INFO,org.hibernate.SQL:debug,org.hibernate.orm.jdbc.bind:trace"
Anything else?
I'll try to suggest a solution in a PR
The text was updated successfully, but these errors were encountered: