Issue #139: Repo Group assigned top-level parent by mistake (conservancy/kallithea)

Bosco Rama issues-reply at bitbucket.org
Wed Jun 3 03:47:37 EDT 2015


New issue 139: Repo Group assigned top-level parent by mistake
https://bitbucket.org/conservancy/kallithea/issue/139/repo-group-assigned-top-level-parent-by

Bosco Rama:

When a user has Admin rights to a single Repo Group, and that Repo Group resides in another Repo Group, the target Repo Group will be assigned the 'Top Level' (aka root) as the parent Repo Group whenever the user hits 'Save' in the Settings tab for the repo group.

Since the user has no options available to choose as the parent (not even the current parent since they do not have admin access to it) the Save will determine that the caller has asked for the Top Level and assign it even though they are not allowed to use the Top Level as a parent (that is, 'can_create_in_root=false' is being ignored).

Kallithea version: Current stable from repo

How to reproduce:

1. Create a Repo Group (e.g. Group1)
1. Create a sub-group of that group (e.g. SubGroup1)
1. Assign a user as Admin of SubGroup1 that does not have Admin rights to any other Repo Groups
1. Login as that user and edit the Repo Group settings for SubGroup1
1. In the Settings tab hit Save.  (Note that there are no options for 'Group Parent')

The SubGroup1 Repo Group should now be parented at the Top Level instead of Group1.
What's more, the user cannot reassign it back because they don't have Admin rights to Group1.




More information about the kallithea-general mailing list