-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
"Save"ing user properties may overwrite newer data (racy behaviour) #707
Comments
Of course this would lead to overwriting values set in another session and I would expect exactly that behavior, if you execute the steps you noted down. Yes, you could implement mechanisms against this, but this is a huge amount of work with very tiny impact, since this usually does not happen. If you would like to submit a PR, please do so, but I don't see me spending many days or even weeks of work to implement this. It would require thousands of lines of code and all "quick" solutions will have the same issues to some degree. This does not only apply to user data, but to any data in all places, if you for instance have multiple admins. The only thing I can consider is, when I am doing UI updates for Btw |
Yeah, I totally get that it is a lot of work, feel free to close this as "wont-do" or something like that if you prefer to keep the issue-list clean. I just wanted to report it as I stumbled upon issues with this exact scenario while testing.
Thanks for the heads up 🙂 |
I will leave it open for now as a reminder, because I can do something about it with not too much work for user updates at least, which is the situation where it will happen most likely. |
As of 0.26.2 it seems like storing a users' properties will overwrite (at least some) properties that have been updated between opening the User UI in the browser and when clicking "Save" (in particular the "E-mail verified" field)
Repro:
Some discussions of strategies of how to handle this on stack overflow
What I would prefer happen would be that either the operator gets an error that the data they are writing is "stale" and has been changed in between their own changes, or only the fields that was actually edited are updated.
Used the ghcr.io/sebadob/rauthy:0.26.2-lite docker image
The text was updated successfully, but these errors were encountered: