New issue
Advanced search Search tips
Starred by 4 users

Issue metadata

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

Sign in to add a comment

Issue 9655: Unable to set owner of group to a single user

Reported by, Aug 29 Project Member

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)"}

Comment 1 by, Sep 27

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

Comment 2 by, Oct 6

Project Member
Status: ChangeUnderReview (was: Accepted)

Comment 3 by, Oct 8

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

Comment 4 by, Oct 9

Labels: FixedIn-2.15.5

Comment 5 by, Oct 9

Status: Released (was: Submitted)

Comment 6 by, Nov 20

Project Member
Labels: FixedIn-2.16

Sign in to add a comment