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

Re: authentication error after upgrading client to svn1.8.0-rc2 (accessing a svn1.7.8 server)

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: Fri, 31 May 2013 14:11:22 -0400

On 05/31/2013 01:28 PM, C. Michael Pilato wrote:
> On 05/31/2013 12:06 PM, C. Michael Pilato wrote:
>> On 05/31/2013 10:45 AM, Welch, Klaus wrote:
>>> On monday I'll check the serf version, remove client side credential, carefully re-check all the build logs.
>>>
>>> Hopefully something indicates where to look further.
>>
>> As it turns out, I have been able to reproduce this problem on my laptop
>> with a simple Digest auth configuration. I'll debug after some lunch.
>
> The failure occurs when Serf hits this condition (in its
> auth/auth_digest.c:serf__validate_response_digest_auth() function):
>
> /* Incorrect response-digest in Authentication-Info header. */
> if (strcmp(rspauth, resp_hdr_hex) != 0) {
> return SERF_ERROR_AUTHN_FAILED;
> }
>
> Still digging.

After some more debugging, I find that the problem is the URI comparisons in
that function. On one side, the HA2 digest contributor has been calculated
using the actual URI of the PROPFIND request (.../!svn/rvr/...). On the
side of the comparison, a bit of path information is pulled from the Serf
connection's host_info structure. All works well for the OPTIONS requests,
which both hit the public URI of the repository. But that PROPFIND comes
along and the comparisons fail.

I'll need to take this up with the Serf developers.

-- 
C. Michael Pilato <cmpilato_at_collab.net>
CollabNet   <>   www.collab.net   <>   Enterprise Cloud Development

Received on 2013-05-31 20:11:59 CEST

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.