Permissions module doesn't properly report errors

Description

At present, a bug in the Users UI module (see STRIPES-261) means that when it posts the permissions for a new user, no password is sent. The back-end permissions module quite rightly rejects this; but it does so with a 500 status (internal server error) and no useful diagnostic message. Instead, it should notice the incorrect posting, and reject with the 4xx (client error) and a useful message.

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Checklist

hide

TestRail: Results

Activity

Show:

Jakub Skoczen June 12, 2020 at 11:02 AM

Closing as outdated. Re-open if needed.

Jakub Skoczen March 20, 2017 at 12:30 PM

It's not the first time user errors are not reported properly. We should have tighter test cases to test common input/validation errors. I don't think it's merely a matter of fixing this particular issue (and it it is I would still like the unit test to be included along with the fix).

Won't Do

Details

Assignee

Reporter

Priority

Development Team

Core: Platform

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created March 20, 2017 at 12:01 PM
Updated June 12, 2020 at 11:02 AM
Resolved June 12, 2020 at 11:02 AM
TestRail: Cases
TestRail: Runs