Issue Summary
userSlug with capital case in the REST API URL /rest/api/1.0/projects/<projectKey>/repos/<repositorySlug>/pull-requests/<pullRequestId>/participants/<userSlug> does not work
Steps to Reproduce
- Create a username testName
- Create a project TST
- Create a repository reponame
- Create pull request with ID 1
- Create a file test.json with the following content:
{ "status": "NEEDS_WORK" }
- Run the following cURL:
curl -u testName -X PUT -H "Content-Type: application/json" -d @test.json http://localhost:7990/rest/api/1.0/projects/TST/repos/reponame/pull-requests/1/participants/testName
Expected Results
The status update is successful
Actual Results
It fail with the following reply
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><status><status-code>403</status-code><message>You may only update your own status.</message></status>
Workaround
Changing userSlug from capital case to lower case will work fine
- mentioned in
-
Page Failed to load
Form Name |
---|