stable

Clone or download

Read-only

request #13593 REST route PUT /user_groups/{id}/users crashes when an incorrect representation is given

Try to call the REST route PUT /user_groups/{id}/users with a payload like {"id":102} you get a crash instead of an error with a status code 400. REST tests are also updated to ensure that both accepted formats are still working. Change-Id: Ib7f3904926e8e482c8a72404ea41c004342dbcbf

Modified Files

Name
M src/common/Project/REST/v1/UserGroupResource.class.php +14 −5 Go to diff View file
M tests/rest/tests/UserGroupTest.php +10 −6 Go to diff View file