bzr get tries to read as svn (http:// with authentication)

John Arbash Meinel john at arbash-meinel.com
Sat Dec 1 14:46:10 GMT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Balazs Ree wrote:
> bzr version 0.92-1, bzr-svn 0.4.4-1, both installed from Debian distro.
> 
> If I do "bzr get" on a http access with authentication, I get:
> 
> $ bzr get http://buildout:passwd@greenfinity.hu/...
> 
> bzr: ERROR: Permission denied: ".": PROPFIND request failed on '...'
> 
> This shows it tries to access it as svn, but it's really bzr. If I remove 
> bzr-svn, it works fine.

This is because bzr-svn gets first chance at probing the remote to see what
format it is in.

It sounds like bzr-svn needs to fail gracefully when EPERM happens. And just
say "NotBranch". Then the rest of the probing code can take over from there.

> 
> The source is in a shared repository with dirtype-with-subtree format, 
> with no working directories. Maybe this causes the problem really and the 
> authentication bit is irrelevant, I don't know.

It should be irrelevant.

> 
> Is this a known issue?
> 
> 
> I have to add this is with pycurl _not_ installed. With pycurl installed 
> the authentication does not even get so far and I get:
> 
> bzr: ERROR: Invalid http response for http://
> buildout at greenfinity.hu/.../.bzr/branch-format: Unable to handle http 
> code 401: expected 200 or 404 for full response.
> 

401 is Unauthorized, aka Authentication required. Maybe Vincent would have an
idea why it is failing. It should be triggering a retry.

I actually wonder if the Auth is failing, and that is causing us to fail with a
401 rather than something else.

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHUXOyJdeBCYSNAAMRAsMDAJ0XH0fvq9uRcWu+FFijx9o5nWyKOACgvIvI
u9INXWNRjMGgrtGm7UPZurI=
=PioG
-----END PGP SIGNATURE-----



More information about the bazaar mailing list