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

user admin enable without password change not internal error #2635 #2636

Conversation

phillxnet
Copy link
Member

Return HTTP_400_BAD_REQUEST not HTTP_500_INTERNAL_SERVER_ERROR.

Fixes #2635

Before proposed change

We return an internal server error code of 500 to our client side which results in our Web-UI providing a back-trace/debugging type feedback on an internal error that has not happened.

before-with-500

After patch

The change to a 400 bad client request error code results in the following more appropriate Web-UI dialog:

after-with-400

Counterpart unit test changes

This pull request and its associated issue address a small tested code modification surfaced while improving our tests in this area in work done against issue:
"Improve OS independence re unit tests #2633"
The appropriate testing change will be included in a referenced pull reqeust against that issue.

…#2635

Return HTTP_400_BAD_REQUEST not HTTP_500_INTERNAL_SERVER_ERROR.
@phillxnet
Copy link
Member Author

Merging this into testing to enable a rebase of the work in progress associated with the test improvements that brought this issue to light.

@phillxnet phillxnet merged commit bd8f0b8 into rockstor:testing Aug 1, 2023
@phillxnet phillxnet deleted the 2635_user_admin_enable_without_password_change_not_internal_error branch August 1, 2023 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant