[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Using http:// URL that contains a username

From: <petesea_at_bigfoot.com>
Date: Wed, 08 Apr 2009 10:00:15 -0700 (PDT)

On Wed, 8 Apr 2009, Andrey Repin wrote:

> Greetings, petesea_at_bigfoot.com!
>> Does SVN support the use of a username within an https:// URL?
>> In other words, say I'm logged into a workstation with the username
>> "bozo" and I run the following command:
>> $ svn info svn+ssh://bclown@svn.example.com/repo
> It is not SVN, it is SSH works with username suppled in URL.

Sorry... I guess I should have been clearer. I realize in the case of
svn+ssh://, SSH is the one parsing the username from the URL. I was
simply using it as an example of an URL that works with an embedded

>> It works fine. I can contact the SVN server as "bclown", which is my
>> username on that server. But, if I try to contact the server using
>> https:// instead of svn+ssh://...
>> $ svn info https://bclown@svn.example.com/repo
>> I get prompted for the password for user "bozo"... NOT user "bclown", eg:
>> $ svn info https://bclown@svn.example.com/repo
>> Authentication realm: <https://svn.example.com:443> Example Repo
>> Password for 'bozo':
>> I realize I can use the --username option, but --username doesn't work
>> with svn+ssh://, which means I need to use 2 different methods to specify
>> the username.
>> Is there a particular reason svn doesn't support a username as part of
>> the URL with https:// or is there something wrong with my Apache setup
>> which is preventing it from working?

At the time I asked, I wasn't sure if SVN supported this syntax or not...
in other words, I wasn't sure if I was doing something wrong either on the
client or server that prevented a username in an https:// URL from
working. From the sounds of it, it appears that's not the case and SVN
simply doesn't support it.

So, let me rephrase the question...

Is there a specific reason SVN doesn't support a username as part of an
https:// URL? The syntax for an URL has included an optional username for
quite some time... since the beginning I believe and at least long before
SVN. So it makes me wonder why it isn't supported by SVN?

> Better stick to one way of accessing SVN on single host, unless there's
> something special about it.

I do have reasons for needing both methods.

> As I said, it's not SVN working with URL when you connecting through
> SSH. When SVN doing authorization by itself, it storing credentials in
> user area, so you do not need to enter username next time you accessing
> the same repository.
> You should really read svnbook, I do not have time to retype whole
> chapters from it in a single message.

I'll admit, I have not read every word of the Subversion book, but I have
read the relevant sections on this subject and searched the entire book
for keywords relating to this subject. If you know of a particular
section that explicitly says a username as part of the URL is or is NOT
supported and/or why it's not supported I'd love to know about it. I
understand you are very busy, so won't ask you to retype any applicable
sections, a link to the section would be nice though.


To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-04-08 19:04:22 CEST

This is an archived mail posted to the Subversion Users mailing list.