New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 9655 link

Starred by 4 users

Issue metadata

Status: Released
Owner: ----
Closed: Oct 8

Sign in to add a comment

Unable to set owner of group to a single user

Project Member Reported by, Aug 29

Issue description

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
  {"owner":"user/Administrator (admin)"}
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:
  {"options":{},"id":"user%3Aadmin","name":"user/Administrator (admin)"}
Project Member

Comment 1 by, Sep 27

Labels: Triaged-Yes Priority-2 Blocking-2.16
Project Member

Comment 2 by, Oct 6

Status: ChangeUnderReview (was: Accepted)
Project Member

Comment 3 by, Oct 8

Labels: -Blocking-2.16
Status: Submitted (was: ChangeUnderReview)
Labels: FixedIn-2.15.5
Status: Released (was: Submitted)
Project Member

Comment 6 by, Nov 20

Labels: FixedIn-2.16

Sign in to add a comment