My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 3394: Gerrit doesn't delete tag with right permissions
1 person starred this issue and may be notified of changes. Back to list
Status:  Invalid
Owner:  ----
Closed:  May 2015


Sign in to add a comment
 
Reported by okit...@gmail.com, May 27, 2015
Affected Version: v2.10.3.1

Steps to reproduce:
1. Create a git project
2. Set permissions as outlined in attachment
3. Create and push a lightweight tag with commands like
   git tag "1.f"
   git push --tags
4. Try to delete tag from local and remote repos:
   git tag -d 1.f (this is successful, obviously)
   git push origin :refs/tags/1.f   (this fails)

Intended outcome: the tag is deleted from the remote repository.

Real outcome:
It outputs this message:

remote: Branch refs/tags/1.f:
remote: You need 'Push' rights with the 'Force Push'
remote: flag set to delete references.
remote: User: okitain
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://okitain@my.server.path:29418/sandbox/tags

I have been unable to reproduce this issue with gerrit 2.11, however, the server setup was significantly different.
gerrit-wtf.png
43.7 KB   View   Download
May 27, 2015
Project Member #1 edwin.ke...@gmail.com
What the permissions on your "Public-Projects" parent project.
It may be that force push on tags is blocked in on of the parent projects.
Status: AwaitingInformation
May 27, 2015
#2 okit...@gmail.com
Here are important parts of configs to All-Projects (which everything inherits from) and Public-Projects (which this project inherits from). I don't see anything relevant yet.

Surely a block from pushing tags for anonymous users doesn't affect a registered, administrator user? 
All-Projects.png
35.8 KB   View   Download
Public-Projects.png
30.1 KB   View   Download
May 27, 2015
Project Member #3 edwin.ke...@gmail.com
> Surely a block from pushing tags for anonymous users doesn't affect a registered,  > administrator user? 

It does. Blocking 'Anonymous Users', means blocking it for all users.

May 27, 2015
#4 okit...@gmail.com
Thank you very much. It works, although for the life of me I can't grasp why the all-users group is named Anonymous Users.
May 27, 2015
Project Member #5 edwin.ke...@gmail.com
> although for the life of me I can't grasp why the all-users group is named 
> Anonymous Users.

Yes, this is confusing. Maybe the name should be changed.
Status: Invalid
Sign in to add a comment

Powered by Google Project Hosting