Can bzr-svn handle http code 401?

Asked by Eddy Mulyono

bzr branch http://www.example.com/svn/sample_project/trunk
bzr: ERROR: Invalid http response for http://www.example.com/svn/sample_project/trunk/.bzr/branch-format: Unable to handle http code 401: Authorization Required

Can bzr-svn handle http code 401?

If yes, starting from which version?

Thanx, in advance,

-Eddy

Question information

Language:
English Edit question
Status:
Solved
For:
Bazaar Subversion Plugin Edit question
Assignee:
No assignee Edit question
Solved by:
Jelmer Vernooij
Solved:
Last query:
Last reply:
Revision history for this message
Best Jelmer Vernooij (jelmer) said :
#1

This error actually happens before bzr-svn is used at all and comes from bzr.

Please try adding the prefix 'svn+' to the url.

Revision history for this message
Eddy Mulyono (eddymul) said :
#2

Thanks Jelmer Vernooij, that solved my question.

Revision history for this message
Pete Deremer (sportman1280-deactivatedaccount) said :
#3

Worked for me too. Thank you.

Revision history for this message
Michal Golunski (migol-pl) said :
#4

I found one thing about it. When i use svn+http:// i get message that this is obsolete. If I use http:// only, I cannot checkout SVN repository.

Revision history for this message
Jelmer Vernooij (jelmer) said :
#5

On Sat, 2009-01-31 at 17:16 +0000, Michal Golunski wrote:
> Question #11299 on Bazaar Subversion Plugin changed:
> https://answers.edge.launchpad.net/bzr-svn/+question/11299
>
> Michal Golunski posted a new comment:
> I found one thing about it. When i use svn+http:// i get message that
> this is obsolete. If I use http:// only, I cannot checkout SVN
> repository.
Can you be more specific? What error do you get if you use "http://" only?

Cheers,

Jelmer

--
Jelmer Vernooij <email address hidden> - http://samba.org/~jelmer/
Jabber: <email address hidden>

Revision history for this message
David Strauss (davidstrauss) said :
#6

"The svn+ syntax is deprecated, use https://example.com instead."

Revision history for this message
Jesús García Sáez (blaxter) said :
#7

I have had the same problem with the same solution, but the funny thing that Michal said is this:

$ bzr checkout https://foobar.com/some/repo/trunk trunk
bzr: ERROR: Invalid http response for https://foobar.com/some/repo/trunk/.bzr/branch-format: Unable to handle http code 401: Authorization Required
$ bzr checkout svn+https://foobar.com/some/repo/trunk trunk
The svn+ syntax is deprecated, use https://foobar.com/some/repo/trunk instead.
Initialising Subversion metadata cache (....)

Revision history for this message
cheatex@gmail.com (cheatexmail) said :
#8

Hi,
i have similar problem, but svn+http not works:
$ bzr checkout http://<url> <name>
bzr: ERROR: Invalid http response for http://<url>/.bzr/branch-format: Unable to handle http code 401: Authorization Required
$ bzr checkout svn+http://<url> <name>
bzr: ERROR: Unsupported protocol for url "svn+http://<url>"

Environment: Ubuntu 9.04, bzr 1.13.1-1, bzr-svn 0.5.3-1.
I also made some experiments with bzr-eclipse and installed bzr-xmloutput 0.8.3.

Revision history for this message
Jelmer Vernooij (jelmer) said :
#9

<email address hidden> wrote:
> Question #11299 on Bazaar Subversion Plugin changed:
> https://answers.launchpad.net/bzr-svn/+question/11299
>
> <email address hidden> posted a new comment:
> Hi,
> i have similar problem, but svn+http not works:
> $ bzr checkout http://<url> <name>
> bzr: ERROR: Invalid http response for http://<url>/.bzr/branch-format: Unable to handle http code 401: Authorization Required
> $ bzr checkout svn+http://<url> <name>
> bzr: ERROR: Unsupported protocol for url "svn+http://<url>"
>
> Environment: Ubuntu 9.04, bzr 1.13.1-1, bzr-svn 0.5.3-1.
> I also made some experiments with bzr-eclipse and installed bzr-xmloutput 0.8.3.
It looks like you don't have bzr-svn installed. Does "bzr plugins" list it?

bzr-svn 0.6.x should handle the 401 issue without problems.

Cheers,

Jelmer

Revision history for this message
Seth (bugs-sehe) said :
#10

Ermm Jelmer I think this is actually a problem.

I'm trying to use bzr-svn on bzr 2.0 Win32 (standalone installer).

using http://... gives 401 error (after oodles of time)
using svn+http://... gives the dreaded 'unsupported protocol'

Env: Windows

>bzr version
Bazaar (bzr) 2.0.1
  Python interpreter: C:\Program Files (x86)\Bazaar\python25.dll 2.5.4
  Python standard library: C:\Program Files (x86)\Bazaar\lib\library.zip
  Platform: Windows-Vista-6.1.7600
  bzrlib: C:\Program Files (x86)\Bazaar\lib\library.zip\bzrlib
  Bazaar configuration: C:\Users\SeHe.SDUSBO\AppData\Roaming\bazaar\2.0
  Bazaar log file: C:\Users\SeHe.SDUSBO\Documents\.bzr.log

>bzr plugins -v
bzrtools 2.0.1
    Various useful commands for working with bzr.
    C:\Program Files (x86)\Bazaar\plugins\bzrtools

explorer 0.8.3
    Version Control for Human Beings.
    C:\Program Files (x86)\Bazaar\plugins\explorer

launchpad 2.0.1
    Launchpad.net integration plugin for Bazaar.
    C:\Program Files (x86)\Bazaar\plugins\launchpad

netrc_credential_store 2.0.1
    Use ~/.netrc as a credential store for authentication.conf.
    C:\Program Files (x86)\Bazaar\plugins\netrc_credential_store

qbzr 0.14.4
    QBzr - Qt-based frontend for Bazaar
    C:\Program Files (x86)\Bazaar\plugins\qbzr

rebase 0.5.4
    Rebase support.
    C:\Program Files (x86)\Bazaar\plugins\rebase

svn 1.0.0
    Support for Subversion branches
    C:\Program Files (x86)\Bazaar\plugins\svn

upload 1.0.0dev
    Upload a working tree, incrementally.
    C:\Program Files (x86)\Bazaar\plugins\upload

xmloutput 0.8.5
    This plugin provides xml output for status, log, annotate, missing, info,
    C:\Program Files (x86)\Bazaar\plugins\xmloutput

So it really appears to not work simply because of obsoleted url syntax.

Revision history for this message
Jelmer Vernooij (jelmer) said :
#11

On Wed, 2009-11-11 at 20:50 +0000, Seth wrote:
> Question #11299 on Bazaar Subversion Plugin changed:
> https://answers.launchpad.net/bzr-svn/+question/11299
>
> Seth posted a new comment:
> Ermm Jelmer I think this is actually a problem.
>
> I'm trying to use bzr-svn on bzr 2.0 Win32 (standalone installer).
>
> using http://... gives 401 error (after oodles of time)
> using svn+http://... gives the dreaded 'unsupported protocol'
There shouldn't be any need to use svn+http:// *unless* you have pycurl
installed (I don't know from memory if this is the case with the
standalone win32 installer, and I don't have net access at the moment).

However, svn+http:// should work in any case. If it doesn't, this
suggests that bzr-svn is not at all installed or enabled. Do operations
against other svn URLs work?

Cheers,

Jelmer

--
Jelmer Vernooij <email address hidden> - http://samba.org/~jelmer/
Jabber: <email address hidden>

Revision history for this message
Seth (bugs-sehe) said :
#12

Jelmer Vernooij wrote:
> Question #11299 on Bazaar Subversion Plugin changed:
> https://answers.launchpad.net/bzr-svn/+question/11299
>
> Jelmer Vernooij posted a new comment:
> On Wed, 2009-11-11 at 20:50 +0000, Seth wrote:
>
>> Question #11299 on Bazaar Subversion Plugin changed:
>> https://answers.launchpad.net/bzr-svn/+question/11299
>>
>> Seth posted a new comment:
>> Ermm Jelmer I think this is actually a problem.
>>
>> I'm trying to use bzr-svn on bzr 2.0 Win32 (standalone installer).
>>
>> using http://... gives 401 error (after oodles of time)
>> using svn+http://... gives the dreaded 'unsupported protocol'
>>
> There shouldn't be any need to use svn+http:// *unless* you have pycurl
> installed (I don't know from memory if this is the case with the
> standalone win32 installer, and I don't have net access at the moment).
>
I don't know how to find out, sorry.
> However, svn+http:// should work in any case. If it doesn't, this
> suggests that bzr-svn is not at all installed or enabled.
Well it is clearly installed according to the output of the commands I
posted
> Do operations
> against other svn URLs work?
>
I'll have a look tomorrow.
> Cheers,
>
> Jelmer
>
>
>