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

Create User invalid request has a response which returns 500 #5228

Closed
5 tasks
armaganpekatik opened this issue Aug 6, 2022 · 0 comments · Fixed by #5229
Closed
5 tasks

Create User invalid request has a response which returns 500 #5228

armaganpekatik opened this issue Aug 6, 2022 · 0 comments · Fixed by #5229

Comments

@armaganpekatik
Copy link
Contributor

armaganpekatik commented Aug 6, 2022

Description of problem

When you try to change any user password, invalid password set causes an error response has a status code of 500 which is system exception.

  1. Go to Persona Bar>Users>Change Password
  2. Enter an invalid password e.g. a small password (single character)
  3. Observe the error and check the details in the network response (browser console)

Error response shouldn't have a status code of 500

Description of solution

Change status code of the bad request.

Description of alternatives considered

I set the response to 400 but 422 may be considered.

Screenshots

Additional context

Affected browser

  • Chrome
  • Firefox
  • Safari
  • Internet Explorer
  • Edge
donker pushed a commit that referenced this issue Aug 7, 2022
…5229)

* encoding url adding to temp

* Password error code change

* url fix

* rename exception type

* all register errors should be logged

Co-authored-by: armaganpekatik <armagan.pekatik@trilogy.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant