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
[BSERV-11786] Capital case username does not work with updating PR participant status API
Remote Link | New: This issue links to "Page (Confluence)" [ 443578 ] |
Remote Link | Original: This issue links to "Page (Confluence)" [ 442243 ] |
Assignee | New: Kristy [ khughes@atlassian.com ] |
Fix Version/s | New: 6.6.0 [ 88690 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Long Term Backlog [ 12073 ] | New: Closed [ 6 ] |
Remote Link |
New:
This issue links to "Bitbucket Server › Pull Request Build › bugfix- |
Remote Link | New: This issue links to "Page (Confluence)" [ 442243 ] |
Status | Original: Needs Triage [ 10030 ] | New: Long Term Backlog [ 12073 ] |
Labels | New: dob-pr |
Priority | Original: Low [ 4 ] | New: Medium [ 3 ] |