You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. As an administrator I fork a developers repository (say "projectsA/foo.git")
2. GitBlit prepares the fork and creates it: "~krulls/foo.git"
What is the expected output? What do you see instead?
I expect no changes in the global permission configurations. But after the fork has
been processed several groups and users have additional repository permissions.
For the developer group that has writing permission (RWD) to "projectsA/.*" there now
exists an additional entry in repository permissions: "~krulls/foo.git" -> "R (clone)".
This additional entry has also been added to any user who has specified repository
permissions.
What version of the product are you using? On what operating system?
1.3.1
Please provide any additional information below.
1. User management via LDAP;
2. a group "all devs" has following access permissions: ".*" -> "R (clone)"
3. a group "devgroup1" has following access permissions: "projectsA/.*" -> "RWD"
-> that is: a user has clone permission to every repo but writing permission only to
a repo-group according to his team.
4. forking is only allowed to administrators
Reported by stephan.krull.ecg on 2013-10-09 08:04:38
So after every fork I have to edit access permissions and delete these additional entries
for up to 4 groups and 10 users. I have to delete the entries because they override
global permissions. A developer who can write to every repo under "projectsA" is suddenly
not able to write to a new fork under "projectsA/foo.git" because of this issue.
Reported by stephan.krull.ecg on 2013-10-09 08:09:38
Sorry for taking a ridiculous amount of time to get back to this issue. The behavior
you are seeing was (mostly) the design as documented here.
http://gitblit.com/administration.html#H20
I didn't check the user or teams for whether or not they could already clone the new
fork, I just rammed clone permissions into those objects. Bad idea. I'll fix that.
It's not clear to me why your personal fork breaks permissions for devgroup1 with projectsA/.*
-> RWD. Or was it the unexpected additional explicit permission that was the problem?
Forking in a corporate evironment is one of those grey areas where I wasn't sure how
to setup the default permissions. I went with team/workgroup transparency which is
why those clone permissions are injected. If you fork a repo, everyone gets to see
it, by default.
Anyway, I'll fix the unnecessary extra permissions and wait to hear if that is satisfactory
for you.
Fix pushed to master: CLONE permission no longer explicitly set if the user/team already
has an implied CLONE permission to the fork: regex, admin flag, future something or
other.
The other rule for transparency/collaboration still applies: if the user/team does
not have an implied CLONE permission for the fork BUT does have a CLONE permission
for the source, the user/team gets an explicit CLONE permission for the fork.
Activity
gitblit commentedon Aug 12, 2015
Reported by
stephan.krull.ecgon 2013-10-09 08:09:38gitblit commentedon Aug 12, 2015
Reported by
James.Mogeron 2013-10-11 01:03:35Acceptedgitblit commentedon Aug 12, 2015
Reported by
James.Mogeron 2014-02-27 04:44:34gitblit commentedon Aug 12, 2015
Reported by
James.Mogeron 2014-02-27 05:05:00Queuedgitblit commentedon Aug 12, 2015
Reported by
James.Mogeron 2014-03-09 18:06:21Done