Dave, it is not related to #2712. The issue described be me and Michael
only occurs if:
- the root folder is anonymously accessible
- a subfolder has restricted access
- HTTP or HTTPS is used as the transport protocol
C. Michael Pilato wrote:
> Here's a blog post that I think is ultimately related to this topic:
Thanks! Very useful, clear explanation!
I used the last option mentioned (two URLs with the same repository),
but we recently moved servers, and the sysadmin liked to integrate them
"because that's possible, after all". Then the headache started ;-). I
finally asked him to simply close anonymous access, essentially using
the first option mentioned.
However, you make it sound like a solution can not exist. That is not
true. Let me give you two solutions:
First, one statement in the blog is not entrally correct:
> And you can't force Subversion to transmit authentication credentials
> when Apache hasn't asked for them.
Well, you can not for HTTP Digest authentication, but you most certainly
can for HTTP Basic authentication.
% telnet www.example.org 80
REPORT /svn/myrepos/!svn/vcc/default HTTP/1.1
Authorization: Basic YXVzZXI6c2VjcmV0=
And you DO get the restricted access folder:
However, I'm the first to admit that this is, or should be, an
non-solution since HTTP Basic authentication is has no encryption and
should not be used. And you are right that with HTTP Digest
authentication, subversion *CAN NOT* send authentication credentials,
since Apache does not give a challenge key.
However, *if* subversion encounters a statement in the report saying
while it was not able to present the proper authentication credentials,
even though the user presented that on the command line, then it will
surely be able to deduce that the reason that folder was sent was
becuase it was restricted. In that case, it can simply continue to
retrieve /svn/myrepos/restrictedsubfolder/ after it fetched /svn/myrepos/!
I think that is a non-trivial, but viable option to solve this bug.
Perhaps a smart developer can even come up with a better solution.
To unsubscribe, e-mail: email@example.com
For additional commands, e-mail: firstname.lastname@example.org
Received on Wed Jul 11 17:36:24 2007