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

Fix creation of new user and display the correct error message #33625

Merged
merged 1 commit into from Sep 1, 2022

Conversation

Pytal
Copy link
Member

@Pytal Pytal commented Aug 19, 2022

Fix #33572

  • Fix creation of new user (either with the same or different values entered for Username and Display name)
  • Rollback user creation on invalid displayname
  • Display the correct error message

Out-of-scope

Rollback user creation on other exceptions

Copy link
Member

@PVince81 PVince81 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Contributor

@kesselb kesselb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

The problem itself is present on 24 and 23 too. I guess it's kinda hard to backport the api changes. However the issue only occurs when userId = displayName so the impact is hopefully not to big.

Signed-off-by: Christopher Ng <chrng8@gmail.com>
@PVince81 PVince81 merged commit 253c064 into master Sep 1, 2022
@PVince81 PVince81 deleted the fix/33572/add-user branch September 1, 2022 15:07
@Pytal Pytal added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Sep 1, 2022
@ArtificialOwl
Copy link
Member

ArtificialOwl commented Sep 2, 2022

👍

@ArtificialOwl
Copy link
Member

should we backport this one to stable24 ?

@Pytal
Copy link
Member Author

Pytal commented Sep 29, 2022

We don't backport public API changes though?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish bug feature: settings feature: users and groups regression
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Creating new (database) user show misleading error message and loses data
5 participants