1973: Git: SSH username in mirror path, repository not found for other users

Anthony*******@gmai***** (Google Code) (Is this you? Claim this profile.)
Feb. 7, 2011
What version are you running?
RB 1.5.2
RBTools 0.3

What's the URL of the page containing the problem?
N/A

What steps will reproduce the problem?
1. Run post-review from a user that's different from the SSH configured mirror path in RB

What is the expected output? What do you see instead?
I expect the review to post, instead I get a The repository path user@xxx is not in the list of known repositories

What operating system are you using? What browser?
Ubuntu 10.10

Please provide any additional information below.
I think that the documentation may have been a bit confusing for configuring my git repository with RB so this may be a fix for documentation or it may be a legitimate bug.

I created a local clone of the git repository that people want to post reviews for.  I set the path to this local clone. I then set a mirror path of ssh://user@repo/the.git.  This is the same URL as shown when I run git remote show origin where I have my local clone.

When other users attempt to post a review, they get a repository not found error with their username specified in the repository URL.
When I post as the user who matches the mirror path, it works.  I feel like I've seen this issue before when reading the rb group/issues board but can't seem to find info on it.  I either went wrong with the configuration (maybe doc needs updating?) or the repository URL matching is not ignoring the username correctly.
#1 Anthony*******@gmai***** (Google Code) (Is this you? Claim this profile.)
I think that this has been addressed by the addition of the REPOSITORY variable for .reviewboardrc

I also found that there is a workaround by defining the username in ~/.ssh/config and configuring the git remote url to not include the user name.  This workaround also requires that the repository configured server side does not include the user name

Probably no need to add fuzzy matching
david
#2 david
Thanks.
  • +Fixed