You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Stephen Flowers <sf...@gmail.com> on 2012/04/26 12:55:57 UTC
Tortoise SVN unable to authenticate password
Ever since I changed my password Tortoise SVN will not authenticate.
Even though I can browse the repository through a web browser with the
new password fine, TSVN will not authenticate it. We use the "free"
version of Visual SVN server and TSVN 1.7.6. SVN Server is accessed
through https.
I tried a re-install of TSVN. I tried clearing the stored password
cache with no luck. Other users dont seem to have a problem logging in
on my machine, but I cannot log in on anyone elses.
Any idea?
AW: Tortoise SVN unable to authenticate password
Posted by "Niemann, Hartmut" <ha...@siemens.com>.
>
> Unfortunately I have not managed to get to the bottom of how
> or why subversion <-> httpd is mangling the password and what
> (if anything) subversion (or neon or serf?) could change to
> fix this...
It is not about mangling, it is about character encoding.
About 20 years after the birth of unicode (the encoding to
rule them all :-) there are still way too many programmers
around who are not even aware of the fact that there is
something like an encoding or worse, different encodings
to distinguish and to choose from.
And if you write program code or english texts, you don't see
any differences most of the time. If your keyboard does not have
keys that map to anything beyond Unicodepoint 128,
you'll never have problems with passwords.
The problem with passwords is that you normally can't see them.
So you can't see that there is some garbage where you expected
a pound sign.
I found this article
http://www.tigris.org/scdocs/SVNEncoding
on how subversion treats encoding for file names
(once you think about it, you know that this is an issue).
It seems to use UTF-8 internally throughout.
I didn't understand references to collab.net in this article, though.
So I would bet that subversion translates your password from
Windows Western Europe (code page 1252) to UTF-8 and the others
copy them verbatim.
Hartmut.
Re: Tortoise SVN unable to authenticate password
Posted by Stefan Sperling <st...@elego.de>.
On Thu, Apr 26, 2012 at 01:26:35PM +0100, Cooke, Mark wrote:
> ...so what about users using non-latin character sets?
> Surely not all subversion users are english?
American or British or Hiberno or some other English?
To a computer the difference would matter a lot.
> We are using plain-text `Basic` authentication (over https!) so
> subversion should surely be able to send the characters entered by the
> user?
The problem is that computers don't have a concept of "text" or
"characters". All they know is bits and bytes.
How a particular text appears in computer memory when represented
as bits and bytes can vary from system to system. For instance it might
depend on locale configuration settings, or system-wide encoding
conventions -- some systems don't even use ASCII (which is usually
used today to represent English text in memory).
If the client uses a different representation for a given piece of
text (password) than the server does, the client and server won't
understand each other properly. Even though when rendered on the screen
on either client or the server the text happens to appear exactly the
same, there is no such guarantee for its internal representation which
is used to match the provided password.
Misunderstandings like these can also happen with humans to a lesser
extent (humans have quite good error correction built-in), especially with
speakers of foreign languages (e.g. when they try to order drought beer
instead of draught beer :)
RE: Tortoise SVN unable to authenticate password
Posted by "Cooke, Mark" <ma...@siemens.com>.
> -----Original Message-----
> From: Nico Kadel-Garcia [mailto:nkadel@gmail.com]
> Sent: 26 April 2012 13:12
> To: Cooke, Mark
> Cc: users@subversion.apache.org; Stephen Flowers
> Subject: Re: Tortoise SVN unable to authenticate password
>
> On Thu, Apr 26, 2012 at 7:36 AM, Cooke, Mark
> <ma...@siemens.com> wrote:
>
>
> Hi Steve,
>
> Glad to have been useful (and to know it is not just me)!
>
> Unfortunately I have not managed to get to the bottom
> of how or why subversion <-> httpd is mangling the password
> and what (if anything) subversion (or neon or serf?) could
> change to fix this...
>
> ~ mark c
>
>
> As I remember, not much. Passing non-ASCII characters through
> any kind of password handling tool is a problem, for a lot of reasons.
>
...so what about users using non-latin character sets? Surely not all subversion users are english?
We are using plain-text `Basic` authentication (over https!) so subversion should surely be able to send the characters entered by the user? The browsers manage it OK (IE6/IE8 and Opera 9+ (shush!) for me), just TortoiseSVN and the packaged command line subversion version does this.
Hmm, I'll try a different build to see if that makes a difference (when I get a chance to fiddle with the server again).
~ mark c
Re: Tortoise SVN unable to authenticate password
Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
Daniel Shahaf wrote on Thu, Apr 26, 2012 at 18:36:54 +0300:
> Without reading the context: Philip Martin posted just this week with
> a detailed explanation of when non-ASCII passwords would (and wouldn't)
> work over http.
(The bottom line was that the input on the client must result in the
same bytes the server expects to see --- but the input on the client
depends on locale.
(Also, he didn't touch on that issue there, but I'm quite sure that the
infamous NFC/NFD issue applies here too; namely, é has two encodings in
UTF-8 and the client and server must agree on which one to use...))
>
> Nico Kadel-Garcia wrote on Thu, Apr 26, 2012 at 08:12:27 -0400:
> > On Thu, Apr 26, 2012 at 7:36 AM, Cooke, Mark <ma...@siemens.com> wrote:
> >
> > > Hi Steve,
> > >
> > > Glad to have been useful (and to know it is not just me)!
> > >
> > > Unfortunately I have not managed to get to the bottom of how or why
> > > subversion <-> httpd is mangling the password and what (if anything)
> > > subversion (or neon or serf?) could change to fix this...
> > >
> > > ~ mark c
> > >
> > As I remember, not much. Passing non-ASCII characters through any kind of
> > password handling tool is a problem, for a lot of reasons.
Re: Tortoise SVN unable to authenticate password
Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
Without reading the context: Philip Martin posted just this week with
a detailed explanation of when non-ASCII passwords would (and wouldn't)
work over http.
Nico Kadel-Garcia wrote on Thu, Apr 26, 2012 at 08:12:27 -0400:
> On Thu, Apr 26, 2012 at 7:36 AM, Cooke, Mark <ma...@siemens.com> wrote:
>
> > Hi Steve,
> >
> > Glad to have been useful (and to know it is not just me)!
> >
> > Unfortunately I have not managed to get to the bottom of how or why
> > subversion <-> httpd is mangling the password and what (if anything)
> > subversion (or neon or serf?) could change to fix this...
> >
> > ~ mark c
> >
> As I remember, not much. Passing non-ASCII characters through any kind of
> password handling tool is a problem, for a lot of reasons.
Re: Tortoise SVN unable to authenticate password
Posted by Nico Kadel-Garcia <nk...@gmail.com>.
On Thu, Apr 26, 2012 at 7:36 AM, Cooke, Mark <ma...@siemens.com> wrote:
> Hi Steve,
>
> Glad to have been useful (and to know it is not just me)!
>
> Unfortunately I have not managed to get to the bottom of how or why
> subversion <-> httpd is mangling the password and what (if anything)
> subversion (or neon or serf?) could change to fix this...
>
> ~ mark c
>
As I remember, not much. Passing non-ASCII characters through any kind of
password handling tool is a problem, for a lot of reasons.
RE: Tortoise SVN unable to authenticate password
Posted by "Cooke, Mark" <ma...@siemens.com>.
Hi Steve,
Glad to have been useful (and to know it is not just me)!
Unfortunately I have not managed to get to the bottom of how or why subversion <-> httpd is mangling the password and what (if anything) subversion (or neon or serf?) could change to fix this...
~ mark c
> -----Original Message-----
> From: Stephen Flowers [mailto:sflowers1@gmail.com]
> Sent: 26 April 2012 12:27
> To: Cooke, Mark
> Cc: users@subversion.apache.org
> Subject: Re: Tortoise SVN unable to authenticate password
>
> Hello Mark,
>
> I did indeed have the "£" character in my new password, removing this
> has solved the problem and I can now acces the SVN repository again.
> Many thanks for your very prompt help!
>
> Steve
>
>
> On 26/04/2012 12:02, Cooke, Mark wrote:
> >> -----Original Message-----
> >> From: Stephen Flowers [mailto:sflowers1@gmail.com]
> >> Sent: 26 April 2012 11:56
> >> To: users@subversion.apache.org
> >> Subject: Tortoise SVN unable to authenticate password
> >>
> >> Ever since I changed my password Tortoise SVN will not
> authenticate.
> >> Even though I can browse the repository through a web browser
> >> with the
> >> new password fine, TSVN will not authenticate it. We use the "free"
> >> version of Visual SVN server and TSVN 1.7.6. SVN Server
> is accessed
> >> through https.
> >>
> >> I tried a re-install of TSVN. I tried clearing the stored password
> >> cache with no luck. Other users dont seem to have a problem
> >> logging in on my machine, but I cannot log in on anyone elses.
> >>
> >> Any idea?
> > Hello,
> >
> > I have had a recent thread about such a problem (stretching
> back over the last year):-
> >
> > http://subversion.markmail.org/thread/q57ffzbhrdv6ydhp
> >
> > My problem seems to be related to specific characters in
> the password being mangled by subversion when being passed to
> the server that the browser manages to pass fine. So far I
> have positively identified the `£` character as an issue.
> Could this be your problem? Can you change your password to
> something as ASCII as possible and try again?
> >
> > Hope this helps,
> >
> > ~ mark c
>
>
Re: Tortoise SVN unable to authenticate password
Posted by Stephen Flowers <sf...@gmail.com>.
Hello Mark,
I did indeed have the "£" character in my new password, removing this
has solved the problem and I can now acces the SVN repository again.
Many thanks for your very prompt help!
Steve
On 26/04/2012 12:02, Cooke, Mark wrote:
>> -----Original Message-----
>> From: Stephen Flowers [mailto:sflowers1@gmail.com]
>> Sent: 26 April 2012 11:56
>> To: users@subversion.apache.org
>> Subject: Tortoise SVN unable to authenticate password
>>
>> Ever since I changed my password Tortoise SVN will not authenticate.
>> Even though I can browse the repository through a web browser
>> with the
>> new password fine, TSVN will not authenticate it. We use the "free"
>> version of Visual SVN server and TSVN 1.7.6. SVN Server is accessed
>> through https.
>>
>> I tried a re-install of TSVN. I tried clearing the stored password
>> cache with no luck. Other users dont seem to have a problem
>> logging in on my machine, but I cannot log in on anyone elses.
>>
>> Any idea?
> Hello,
>
> I have had a recent thread about such a problem (stretching back over the last year):-
>
> http://subversion.markmail.org/thread/q57ffzbhrdv6ydhp
>
> My problem seems to be related to specific characters in the password being mangled by subversion when being passed to the server that the browser manages to pass fine. So far I have positively identified the `£` character as an issue. Could this be your problem? Can you change your password to something as ASCII as possible and try again?
>
> Hope this helps,
>
> ~ mark c
RE: Tortoise SVN unable to authenticate password
Posted by "Cooke, Mark" <ma...@siemens.com>.
> -----Original Message-----
> From: Stephen Flowers [mailto:sflowers1@gmail.com]
> Sent: 26 April 2012 11:56
> To: users@subversion.apache.org
> Subject: Tortoise SVN unable to authenticate password
>
> Ever since I changed my password Tortoise SVN will not authenticate.
> Even though I can browse the repository through a web browser
> with the
> new password fine, TSVN will not authenticate it. We use the "free"
> version of Visual SVN server and TSVN 1.7.6. SVN Server is accessed
> through https.
>
> I tried a re-install of TSVN. I tried clearing the stored password
> cache with no luck. Other users dont seem to have a problem
> logging in on my machine, but I cannot log in on anyone elses.
>
> Any idea?
Hello,
I have had a recent thread about such a problem (stretching back over the last year):-
http://subversion.markmail.org/thread/q57ffzbhrdv6ydhp
My problem seems to be related to specific characters in the password being mangled by subversion when being passed to the server that the browser manages to pass fine. So far I have positively identified the `£` character as an issue. Could this be your problem? Can you change your password to something as ASCII as possible and try again?
Hope this helps,
~ mark c