You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Simon Gardner <sg...@dse.com.au> on 2005/06/21 03:13:55 UTC

location tag

I have a question regarding the location tag. We have Subversion working
fine with apache, our apache .conf file location tag looks something
like this:

 

<Location /Repos>

    Order Allow,Deny

    Allow From all

    Dav svn

    SVNParentPath /versioncontrol/repositories

    Require valid-user

    PasswdFile %%LDAP%%

    AuthType Basic

    AuthName "Version Control"

    LDAPConfigFile /versioncontrol/repositories /ldap.conf

    AuthzSVNAccessFile /versioncontrol/repositories /auth.conf

</Location>

 

...so now I can access this using http://MyServer/Repos/MyRepository.

 

My boss however has tried to access it like this:
http://MyServer/repos/MyRepository and receives an error like this:

 

  <?xml version="1.0" encoding="utf-8" ?> 

- <http://dsedev.dse.com.au/repos/Test/##>  <            <D:error
xmlns:D="DAV:" xmlns:m="http://apache.org/dav/xmlns" xmlns:C="svn:">

  <                      <C:error /> 

  <                      <m:human-readable errcode="3025">Could not open
the requested SVN filesystem</m:human-readable> 

            </D:error>

 

 

...so he wants to know why the URL is case sensitive. The confusing
thing is that when you try to access with the latter, you are asked to
log in, indicating the Location tag is case insensitive and has been
entered but then fails.

 

The error from apache is:

[Tue Jun 21 12:55:46 2005] [info] [client 10.58.5.166] Access granted:
'sgardner' GET repos:/Test

[Tue Jun 21 12:55:46 2005] [error] [client 10.58.5.166] (20014)Error
string not specified yet: Can't open file
'/versioncontrol/repositories/repos/format': No such path or directory.

 

...the log on a correct login is:

[Tue Jun 21 12:55:50 2005] [info] [client 10.1.1.38] Access granted:
'sgardner' GET Test:/

 

I have scanned the subversion book and there is no real reference to
this. 

Can anyone give me some idea what is happening?

 

Thanks

Simon Gardner


Re: location tag

Posted by Ryan Schmidt <su...@ryandesign.com>.
On 21.06.2005, at 05:13, Simon Gardner wrote:
>
> I have a question regarding the location tag. We have Subversion  
> working fine with apache, our apache .conf file location tag looks  
> something like this:
>
> <Location /Repos>
>     Order Allow,Deny
>     Allow From all
>     Dav svn
>     SVNParentPath /versioncontrol/repositories
>     Require valid-user
>     PasswdFile %%LDAP%%
>     AuthType Basic
>     AuthName "Version Control"
>     LDAPConfigFile /versioncontrol/repositories /ldap.conf
>     AuthzSVNAccessFile /versioncontrol/repositories /auth.conf
> </Location>
>
> …so now I can access this using http://MyServer/Repos/MyRepository.
>
> My boss however has tried to access it like this: http://MyServer/ 
> repos/MyRepository [snip]
>
> [snip] why [is] the URL is case sensitive. The confusing thing is  
> that when you try to access with the latter, you are asked to log  
> in, indicating the Location tag is case insensitive and has been  
> entered but then fails.

That doesn't seem right. The Location tag *is* case-sensitive. URLs  
are case-sensitive. That's just the way (most) web servers (including  
Apache) are. If you wanted it not to be, you might be able to do this:

<LocationMatch "^/[Rr][Ee][Pp][Oo][Ss]">

But I haven't tried that.

I can't imagine why you're being asked to log in, since your  
<Location> isn't matching. Unless you've duplicated your <Location>  
but this time specified <Location />. If not, then I can't explain it.


> The error from apache is:
>
> [Tue Jun 21 12:55:46 2005] [info] [client 10.58.5.166] Access  
> granted: 'sgardner' GET repos:/Test
>
> [Tue Jun 21 12:55:46 2005] [error] [client 10.58.5.166] (20014) 
> Error string not specified yet: Can't open file '/versioncontrol/ 
> repositories/repos/format': No such path or directory.

Here, it thinks the repository name is "repos" and the path within it  
that you want to access is "/Test". That's not right, of course, but  
it again suggests that there's another <Location> directive that it  
is matching where the same SVNParentPath is defined.


> …the log on a correct login is:
>
> [Tue Jun 21 12:55:50 2005] [info] [client 10.1.1.38] Access  
> granted: 'sgardner' GET Test:/

Yes, that looks better: here it knows that the repository name is  
"Test" and that you're trying to access its root path "/".




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org