kanidm icon indicating copy to clipboard operation
kanidm copied to clipboard

Duplicate e-mail no error message

Open johansmitsnl opened this issue 8 months ago • 3 comments

I did this

On my personal page I added an e-mail address that was already in use. I press change but nothing happens

I expected the following

Show an error message in the UI that the e-mail is already in use

This happened instead

Nothing happened but when you look at the network tab you see the server giving a 500 with the message that it is already used.

Kanidm version details

  • Output of kanidm(d) version: 1.7.0
  • Are you running it in a container? If so, which image/tag?: v1.7.0

Any other comments

Would a 422 status be better on http level. And show a error dialog that the e-mail address with the duplicate ones that are already in use. And maybe by who.

johansmitsnl avatar Aug 04 '25 08:08 johansmitsnl

Yep, HTTP 422 makes sense as a response, and ... a proper error handler in the UI. 😄

yaleman avatar Aug 04 '25 10:08 yaleman

@ToxicMushroom I think this is for you

Firstyear avatar Aug 05 '25 04:08 Firstyear

Good catch, this didn't cross my mind 😅

ToxicMushroom avatar Aug 05 '25 08:08 ToxicMushroom