Affected Version: master
(tested with 2.15.3-4920-g8d052edb22)
What steps will reproduce the problem?
On a clean --dev initialized site:
0. Log in as Administrator.
1. In PG, hit Browse -> Groups.
2. Open the 'Administrators' group.
3. On the General landing page of the group, go to section 'Owners'
4. Set user 'user/Administrator (admin)' as new owner (e.g. use autocomplete by typing 'admin')
5. Hit the button "change owners"
What is the expected output?
To change the owner of the group to the selected user.
What do you see instead?
On the client side, it mentions a "Server error", that the group can't be found. No server errors in the logs, though.
Setting it in GWT works fine, though.
What is the output of the JS console log (if applicable)?
gr-app.js:1091 PUT http://<gerrit>/groups/1/owner 422 (Unprocessable Entity)
_fetchWithXsrfToken @ gr-app.js:1091
fetch @ gr-app.js:1090
_fetch @ gr-app.js:1106
_send @ gr-app.js:1169
saveGroupOwner @ gr-app.js:1119
_handleSaveOwner @ gr-app.js:1583
handler @ gr-app.js:490
fire @ gr-app.js:520
fire @ gr-app.js:505
forward @ gr-app.js:514
click @ gr-app.js:513
handleNative @ gr-app.js:500
gr-app.js:1106 HTTP 422 PUT 11ms /groups/*/owner
gr-app.js:2512 Group Not Found: user/Administrator (admin)
Please provide any additional information below.
Could be similar cause as Issue 9016.
HTTP-PUT to URI /groups/1/owner with body
response status 422 Unprocessable Entity, body:
Group Not Found: user/Administrator (admin)
HTTP-PUT to URI /groups/929cca5a119924c7097e39bb5e78e5f53629acf1/owner with body
response status 200 OK, body: