| Summary: | [API] Invalid login name/password should not return 500 Internal Server Error | ||
|---|---|---|---|
| Product: | Red Hat Storage Console | Reporter: | Daniel Horák <dahorak> |
| Component: | core | Assignee: | gowtham <gshanmug> |
| core sub component: | authentication | QA Contact: | sds-qe-bugs |
| Status: | CLOSED CURRENTRELEASE | Docs Contact: | |
| Severity: | unspecified | ||
| Priority: | unspecified | CC: | mkudlej, nthomas, sankarshan |
| Version: | 2 | ||
| Target Milestone: | --- | ||
| Target Release: | 2 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | rhscon-ceph-0.0.23-1.el7scon.x86_64, rhscon-core-0.0.24-1.el7scon.x86_64, rhscon-ui-0.0.39-1.el7scon.noarch | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-11-19 05:31:13 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
Tested with rhscon-ceph-0.0.29-1.el7scon.x86_64 rhscon-core-0.0.29-1.el7scon.x86_64 rhscon-ui-0.0.43-1.el7scon.noarch and it returns HTTP request sent, awaiting response... 401 Unauthorized Username/Password Authentication Failed. -->VERIFIED |
Description of problem: Login with invalid name or password return 500 Internal Server Error (the description is correct {"Error":"password doesn't match"}), it should return "Client Error" code - 4xx. Version-Release number of selected component (if applicable): rhscon-core-0.0.6-0.1.alpha1.el7.x86_64<F3> How reproducible: 100% Steps to Reproduce: * Try to login to USM API via POST request to APIURL/auth/login with invalid username or password: ``{'username': 'admin', 'password': 'wrong'}`` Actual results: response.ok: False response.reason: Internal Server Error response.status: 500 response.text: {"Error":"password doesn't match"} Expected results: Response contain status 500 - Internal Server Error, while it is a client problem, so it should return "Client Error" with code 4xx.