My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 3334: Odd permissions issue git push branch results in "failed to lock" error.
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


Sign in to add a comment
 
Reported by sam.mxra...@gmail.com, Apr 24, 2015
*****************************************************************
*****                                                       *****
***** !!!! THIS BUG TRACKER IS FOR GERRIT CODE REVIEW !!!!  *****
*****                                                       *****
***** DO NOT SUBMIT BUGS FOR CHROME, ANDROID, CYANOGENMOD,  *****
***** INTERNAL ISSUES WITH YOUR COMPANY'S GERRIT SETUP, ETC.*****
*****                                                       *****
*****   THOSE ISSUES BELONG IN DIFFERENT ISSUE TRACKERS     *****
*****                                                       *****
*****************************************************************

Affected Version: 2.10

What steps will reproduce the problem?
1. Using default global permissions.
2. In the project level create Exclusive Reference permissions for refs/heads/*
  2a. Set the setting "Read:allow", "Create Reference:deny", "Push:deny" for Registered users.
  2b. Ensure Exclusive is checked for each permission.
3. In the project level create Exclusive Reference permissions for refs/heads/sandbox/*
  3a. Set the setting "Read:allow", "Create Reference:allow", "Push:allow", "Push Merge Commit:allow", "Push Annotated Tag:allow".
  3b. Ensure Exclusive is checked for each permission.
  3c. Ensure Force Push is checked for each push permission.

4. With those permissions git push origin sandbox/test
5. Make a commit to sandbox/test branch
6. git push origin sandbox/test

What is the expected output? What do you see instead?
Expected output is being able to successfully push directly to the branch.

What I see instead is:
! [remote rejected] sandbox/test -> sandbox/test (failed to lock) 


Please provide any additional information below.

The branch shows up on disk in Gerrit installation (using git show-ref).  The branch does not show up in the Gerrit web interface nor by using git ls-remote from a cloned copy.

If I uncheck the Exclusive checkboxes for the refs/heads/sandbox/* and leave all other permissions alone it works.
Sign in to add a comment

Powered by Google Project Hosting