Issue 1000: Deleting all project access dissallows admin to add any.
Status:  Released
Owner: ----
Closed:  Jun 2011
Reported by m0.inter...@gmail.com, Jun 5, 2011
Affected Version: 2.2.0

What steps will reproduce the problem?
1. Visit Admin > Project > Foo project > Access
2. Click Edit
3. Remove all access refs (delete them)
4. Cannot add anything anymore

What is the expected output? What do you see instead?
The admin should be able to add access rights.


Is that a limitation or a feature?
Jun 6, 2011
#1 ksimeo...@gmail.com
Is there a workaround available?
Jun 6, 2011
Project Member #2 edwin.ke...@gmail.com
Not sure if there is an easier way...

If you don't have the problem on the root project, you can try the following as a workaround:
1. go to the Gerrit Web-UI
2. open the access rights of the root project ("-- All Projects --") and assign the following privileges:
refs/*            READ  Administrators
refs/meta/config  PUSH  Administrators
3. as administrator clone the repository of the project for which you are not able to edit the access rights
4. fetch and checkout the branch 'refs/meta/config' (edit '.git/config' and add the line 'fetch = +refs/meta/*:refs/meta/*' in the '[remote "origin"]' section, then do a fetch and checkout 'refs/meta/config')
5. create the file 'project.config' with the following content:
[access "refs/*"]
  owner = group Registered Users
6. create the file 'groups' with the following content (important: 'global:Registered-Users' and 'Registered Users' must be seperated by tab and not by space):
global:Registered-Users Registered Users
7. add the files and commit the changes
8. push the commit to 'refs/meta/config'
9. now any user should be able to see and edit the permissions of your project in the Gerrit WebUI
10. fix the permissions in the Gerrit WebUI and remove the OWN privilege for 'Registered Users'

Jun 7, 2011
Project Member #3 edwin.ke...@gmail.com
I've pushed a commit for code review that fixes the problem:
https://review.source.android.com/23548

However I'm not sure if this is the best solution, so please comment if you have any better idea!
Jun 7, 2011
#4 sop@google.com
(No comment was entered for this change.)
Status: Submitted
Labels: FixedIn-2.2.0.1
Jun 7, 2011
#5 m0.inter...@gmail.com
Thanks Shawn! Works great!

 - Mohamed Mansour
Jun 7, 2011
#6 sop@google.com
(No comment was entered for this change.)
Status: Released
Labels: -FixedIn-2.2.0.1 FixedIn-2.2.1