| Issue 351: | Gerrit reports a project doesn't exist when a user doesn't have correct permissions | |
| 14 people starred this issue and may be notified of changes. | Back to list |
Affected Version: 2.0.23 Environment: Ubuntu 8.04.3, Jetty 6.1.14, Java 1.6.0_12, PostgreSQL 8.3.7 What steps will reproduce the problem? 1. Log into Gerrit 2. Copy ssh key into Gerrit 3. Attempt a "repo init" What is the expected output? What do you see instead? A new user was trying to perform a "repo init" for the first time on his workstation and saw the following output: $ repo init -u ssh://bar.foo.com:29418/foo-bar/platform/manifest -b dev --repo-url=git+ssh://bar.foo.com:29418/foo-android/tools/repo.git --no-repo-verify Getting repo ... from git+ssh://bar.foo.com:29418/foo-android/tools/repo.git fatal: '/foo-android/tools/repo.git': not a Gerrit project fatal: The remote end hung up unexpectedly Originally, I had expected the "repo init" to work correctly. I later discovered that the user was not a member of previously established LDAP groups with read permissions in Gerrit. That being the case, I would have expected to see a "permission denied" type message, not a message stating that the requested project did not exist, when in fact it did. This behavior could be confusing and might lead some down the wrong path when troubleshooting, as it gives no overt indication that it is a permissions problem. -Nick
Dec 9, 2009
#1
sop@google.com
Status:
Accepted
Dec 9, 2009
Shawn, I can definitely understand the design decision and the security implications. The thought that it was a security decision did cross my mind. I agree with the configurable options you mentioned. Thanks for your help! -Nick
Aug 31, 2011
Well, this new configuration option is still not implemented, but at least the error message is documented by now [1] so that users can conclude that they are actually missing read access for the project. [1] https://review.source.android.com/Documentation/error-not-a-gerrit-project.html
Mar 28, 2013
(No comment was entered for this change.)
Status:
WontFix
Jan 2, 2015
Nice post really help full for starters |
|
| ► Sign in to add a comment |