My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 1728: Can not upload review to project even when user's group has all permissons
3 people starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


Sign in to add a comment
 
Reported by PeterVLe...@gmail.com, Dec 15, 2012
Affected Version: 2.5.2

What steps will reproduce the problem?
1.  Install Gerrit 2.5.2
2.  Create a new project myProject
3.  From your local box clone the repo
4.  Make some change to the local repo (add and commit the change)
5.  Push the change up for review (git push origin HEAD:refs/for/master)


What is the expected output? What do you see instead?

Expected:

Review is created.


Actual results:

remote: Resolving deltas: 100% (3/3)
remote: Branch refs/for/master:
remote: You need 'Push' rights to upload code review requests.
remote: Verify that you are pushing to the right branch.
remote: User: myUser
remote: Please read the documentation and contact an administrator
remote: if you feel the configuration is incorrect
remote: Processing changes: refs: 1, done
To ssh://myUser@myServer:29418/myProject.git
 ! [remote rejected] HEAD -> refs/for/master (can not upload review)
error: failed to push some refs to 'ssh://myUser@myServer:29418/myProject.
git'


Looking through the code it looks like myUser needs to be part of a group that has the permission Permission.PUSH = "push".  I've added all permissions as allow for this user's group but, it still gives me the error message "Can not upload review".

The part that gets interesting is if I bypass the review process with a git push origin HEAD:refs/heads/master.  Then I have no problem pushing my changes.  But, I am interested in the code review aspect of gerrit more so than the repo aspect...


Permissions.png
35.8 KB   View   Download
Dec 30, 2012
#2 Tomasz.Wiszkowski
Same thing can happen if project status is set to 'Read Only' or 'Hidden'. Is your project active?
Apr 23, 2013
#3 tiredsud...@gmail.com
You can tried to grant push right on the namespace refs/for/refs/heads/master to fix your problem.

Check the "Upload To Code View" here for details:
http://gerrit-documentation.googlecode.com/svn/Documentation/2.6/access-control.html#category_push 
Sign in to add a comment

Powered by Google Project Hosting