You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Greg M <gm...@verizon.net> on 2004/01/08 03:13:52 UTC

Can't checkout repository with space in its name over http

Hi all,

 

First off, thanks for all the hard work :)

 

I am having a little trouble.. maybe someone here can help me

 

I am running SVN on Windows XP, with Apache 2.0.48. I have two repositories
stored on my computer. Both are in the folder "F:\Subversion Repositories".
One is called "www", the other is "My Documents". I am able to check out
both when using the file:// protocol, but I run into trouble with the "My
Documents" one when I try to do it over http.

 

Here's the relevant part of my http.conf:

<Location /svn>

DAV svn

SVNParentPath "F:\Subversion Repositories"

AuthType Basic

AuthName "Subversion repositories"

AuthUserFile passwd

#AuthzSVNAccessFile svnaccessfile

Require valid-user

</Location>

 

I can check out the repository named www by giving the url of the repository
as:

http://localhost:8080/svn/www/

I am unable to check out the repository named My Documents by giving the url
of the repository as:

http://localhost:8080/svn/My%20Documents/

 

I am able to browse both repositories using those URLs, but I can only
checkout www.

 

Here's the error message I get:

PROPFIND request failed on '/svn/My Documents/!svn/vcc/default'

Could not open the requested SVN filesystem

 

Here's the errors that show up in my Apache error log:

Mon Dec 22 16:25:07 2003] [error] [client 127.0.0.1] (20014)Error string not
specified yet: Can't open file 'F:\Subversion Repositories/My/format': The
system cannot find the path specified.  

[Mon Dec 22 16:25:07 2003] [error] [client 127.0.0.1] Could not fetch
resource information.  [500, #0]

[Mon Dec 22 16:25:07 2003] [error] [client 127.0.0.1] Could not open the
requested SVN filesystem  [500, #720003]

[Mon Dec 22 16:25:07 2003] [error] [client 127.0.0.1] Could not open the
requested SVN filesystem  [500, #720003]

 

Here's what I typed at the commandline. (I made sure that c:\test was empty
before issuing each command):

 

C:\test>"c:\program files\subversion\bin\svn" --version

svn, version 0.35.1 (r8050)

   compiled Dec 21 2003, 07:34:35

[-snip-]

 

C:\test>"c:\program files\subversion\bin\svn" checkout
file:///f:/Subversion%20Repositories/www/
<file:///f:\Subversion%20Repositories\www\> 

A  www\html

[-snip-]

 

C:\test>"c:\program files\subversion\bin\svn" checkout
http://localhost:8080/svn/www/

A  www\html

[-snip-]

 

C:\test>"c:\program files\subversion\bin\svn" checkout
file:///f:/Subversion%20Repositories/My%20Documents/
<file:///f:\Subversion%20Repositories\My%20Documents\> 

A  My Documents\Picture.doc

[-snip-]

 

C:\test>"c:\program files\subversion\bin\svn" checkout
http://localhost:8080/svn/My%20Documents/

svn: PROPFIND request failed on '/svn/My Documents/!svn/vcc/default'

svn:

Could not open the requested SVN filesystem

 

 

As you can see, I don't have svn in my path. I don't think that has caused
any problems though.

 

The most interesting error message I see is that apache is looking for a
file called 'F:\Subversion Repositories/My/format'. I imagine it is supposed
to be looking for 'F:\Subversion Repositories/My Documents/format'.

 

Any help would be appreciated.

Thanks,

Greg Martyn

New York, USA


Re: Can't checkout repository with space in its name over http

Posted by John Szakmeister <jo...@szakmeister.net>.
On Thursday 08 January 2004 10:21, Ben Collins-Sussman wrote:
> On Thu, 2004-01-08 at 05:39, John Szakmeister wrote:
> > So the problem is a little bit deeper, and I think I'm going to leave
> > this problem to someone who better understands what is going on.
>
> Thanks for the analysis, John... this looks like a real mod_dav_svn
> bug.  Would you file a new issue that contains a reproduction recipe,
> along with your analysis so far?  I don't want to lose track of this.

No problem.  It's now Issue 1694.

-John


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

Re: Can't checkout repository with space in its name over http

Posted by Ben Collins-Sussman <su...@collab.net>.
On Thu, 2004-01-08 at 05:39, John Szakmeister wrote:

> So the problem is a little bit deeper, and I think I'm going to leave this 
> problem to someone who better understands what is going on.

Thanks for the analysis, John... this looks like a real mod_dav_svn
bug.  Would you file a new issue that contains a reproduction recipe,
along with your analysis so far?  I don't want to lose track of this.



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

Re: Can't checkout repository with space in its name over http

Posted by John Szakmeister <jo...@szakmeister.net>.
On Thursday 08 January 2004 00:26, kfogel@collab.net wrote:
> [snip]
> > The most interesting error message I see is that apache is looking for a
> > file called 'F:\Subversion Repositories/My/format'. I imagine it is
> > supposed to be looking for 'F:\Subversion Repositories/My
> > Documents/format'.

That is an interesting message indeed! :-)

I've found where the problem occurs... the problem is that I don't understand 
enough about mod_dav_svn to fix this yet.

The problem is that dav_svn_get_resource() is being called and r->uri is 
incorrect... it's being truncated where the space is.  So, I figure there is 
another problem where we are not coverting to a URI correctly.  Well, after 
some debugging I hit upon svn_ra_dav__get_one_prop() which is being called by 
svn_ra_dav__get_baseline_props().  Turns out that vcc->data is not URI 
encoded, which eventually causes the incorrect URI in mod_dav_svn.  So, I 
patched in a little fix for it, and then it ends up fetching baseline, which 
also in not URI-encoded.

So the problem is a little bit deeper, and I think I'm going to leave this 
problem to someone who better understands what is going on.

-John


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

Re: Can't checkout repository with space in its name over http

Posted by kf...@collab.net.
"Greg M" <gm...@verizon.net> writes:
> Hi all,
>
> First off, thanks for all the hard work :)
> 
> I am having a little trouble.. maybe someone here can help me

Questions like this should go to users@subversion.tigris.org.
Th dev@ list is for development discussions.

(No big deal, just letting you know for next time.)

I've transferred this to users@, so someone there can help (folks, the
rest of his original mail is below).

-Karl
 
> I am running SVN on Windows XP, with Apache 2.0.48. I have two repositories
> stored on my computer. Both are in the folder "F:\Subversion Repositories".
> One is called "www", the other is "My Documents". I am able to check out
> both when using the file:// protocol, but I run into trouble with the "My
> Documents" one when I try to do it over http.
> 
>  
> 
> Here's the relevant part of my http.conf:
> 
> <Location /svn>
> 
> DAV svn
> 
> SVNParentPath "F:\Subversion Repositories"
> 
> AuthType Basic
> 
> AuthName "Subversion repositories"
> 
> AuthUserFile passwd
> 
> #AuthzSVNAccessFile svnaccessfile
> 
> Require valid-user
> 
> </Location>
> 
>  
> 
> I can check out the repository named www by giving the url of the repository
> as:
> 
> http://localhost:8080/svn/www/
> 
> I am unable to check out the repository named My Documents by giving the url
> of the repository as:
> 
> http://localhost:8080/svn/My%20Documents/
> 
>  
> 
> I am able to browse both repositories using those URLs, but I can only
> checkout www.
> 
>  
> 
> Here's the error message I get:
> 
> PROPFIND request failed on '/svn/My Documents/!svn/vcc/default'
> 
> Could not open the requested SVN filesystem
> 
>  
> 
> Here's the errors that show up in my Apache error log:
> 
> Mon Dec 22 16:25:07 2003] [error] [client 127.0.0.1] (20014)Error string not
> specified yet: Can't open file 'F:\Subversion Repositories/My/format': The
> system cannot find the path specified.  
> 
> [Mon Dec 22 16:25:07 2003] [error] [client 127.0.0.1] Could not fetch
> resource information.  [500, #0]
> 
> [Mon Dec 22 16:25:07 2003] [error] [client 127.0.0.1] Could not open the
> requested SVN filesystem  [500, #720003]
> 
> [Mon Dec 22 16:25:07 2003] [error] [client 127.0.0.1] Could not open the
> requested SVN filesystem  [500, #720003]
> 
>  
> 
> Here's what I typed at the commandline. (I made sure that c:\test was empty
> before issuing each command):
> 
>  
> 
> C:\test>"c:\program files\subversion\bin\svn" --version
> 
> svn, version 0.35.1 (r8050)
> 
>    compiled Dec 21 2003, 07:34:35
> 
> [-snip-]
> 
>  
> 
> C:\test>"c:\program files\subversion\bin\svn" checkout
> file:///f:/Subversion%20Repositories/www/
> <file:///f:\Subversion%20Repositories\www\> 
> 
> A  www\html
> 
> [-snip-]
> 
>  
> 
> C:\test>"c:\program files\subversion\bin\svn" checkout
> http://localhost:8080/svn/www/
> 
> A  www\html
> 
> [-snip-]
> 
>  
> 
> C:\test>"c:\program files\subversion\bin\svn" checkout
> file:///f:/Subversion%20Repositories/My%20Documents/
> <file:///f:\Subversion%20Repositories\My%20Documents\> 
> 
> A  My Documents\Picture.doc
> 
> [-snip-]
> 
>  
> 
> C:\test>"c:\program files\subversion\bin\svn" checkout
> http://localhost:8080/svn/My%20Documents/
> 
> svn: PROPFIND request failed on '/svn/My Documents/!svn/vcc/default'
> 
> svn:
> 
> Could not open the requested SVN filesystem
> 
>  
> 
>  
> 
> As you can see, I don't have svn in my path. I don't think that has caused
> any problems though.
> 
>  
> 
> The most interesting error message I see is that apache is looking for a
> file called 'F:\Subversion Repositories/My/format'. I imagine it is supposed
> to be looking for 'F:\Subversion Repositories/My Documents/format'.
> 
>  
> 
> Any help would be appreciated.
> 
> Thanks,
> 
> Greg Martyn
> 
> New York, USA

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