1583: Review Board doesn't work with private Mercurial repositories

jacob.ka********@gmai***** (Google Code) (Is this you? Claim this profile.)
May 26, 2010
547
Bitbucket has authentication issues with private repositories, which makes Reviewboard (1.5 beta 2) fail 
when posting reviews against private repositories.

I *think* this is a Bitbucket problem, so I've filed an issue over there: 
http://bitbucket.org/jespern/bitbucket/issue/1812/. However, if it can't be fixed on the Bitbucket 
side it might be nice to add a work-around here.

In a nutshell, Bitbucket isn't responding with an HTTP 401/WWW-Authenticate when accessing files 
from a private repository; this causes post-review to fail with an error message about the patched file 
not being found in the repository. The error message is misleading, actually: the problem really is that 
the request for the file returns an HTTP 403.

I'll try to come up with a workaround and post a patch myself, but my naive attempt (always sending 
authentication data instead of waiting for a HTTP 401) isn't working. I think a better workaround would 
be to make Reviewboard use SSH when accessing private Bitbucket repositories, but I'm not yet familier 
enough with Reviewboard to see exactly how to do that.
chipx86
#1 chipx86
  • +Confirmed
  • +Milestone-Release1.5
    +Component-SCMTools
chipx86
#2 chipx86
Looks like nothing's happening on their end to fix this. I'll need to get a private
bitbucket account I can play with in order to figure out a fix for this.