You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Tetsuya Suga <t_...@yahoo.co.jp> on 2009/02/01 10:32:18 UTC
[users@httpd] I CanNot access to svn-reps via apache-webdav. I Can access to nomal webdav of apache...
Hello,
I'm using Apache 2.2.9, subversion 1.4.6-7, mod_dav_svn 1.4.6-7 on Fedora Core 9.
I want to access Subversion via apache as webdav.
I has set up my apache like this
<VirtualHost *:80>
ServerName 192.168.1.9
DocumentROOT "/var/www/ip/public_html/"
DavLockDB /var/www/ip/DavLock
<Location /dav>
Dav on
</Location>
<Location /svn>
DAV svn
SVNPath /var/svn/reps/ip
SVNAutoversioning on
</Location>
</VirtualHost>
Of course I added
LoadModule dav_svn_module modules/mod_dav_svn.so
and
BrowserMatch “Microsoft-WebDAV-MiniRedir" redirect-carefully
Then I tried to do mapping from command line in Vista SP1( Vista Ultimate Japanese SP1, WebDAV Mini-Redirector(MRXDAV.SYS)6.0.6001.22167, service “webclient” running )
net use P: http://myserver/dav/ <=== I success.
net use Q: http://myserver/svn/ <=== I cannot success.
System error 67 has occurred.
The network name cannot be found. (displayed in Japanese)
And also I can access to http://myserver/svn/ from another webdav client.
Windows have another way “network place” to access webdav, but I want to map webdav to a drive.
But I want to drive-map!
Please help me.
There are logs that I tried to access. And I could not find any error in apache’s error log.
#### when I did "net use P: http://myserver/svn/"
#1 Client => Server
OPTIONS / HTTP/1.1
translate: f
User-Agent: Microsoft-WebDAV-MiniRedir/6.0.6001
Host: 192.168.1.9
Content-Length: 0
Connection: Keep-Alive
#2 Client <= Server
HTTP/1.1 200 OK
Date: Fri, 30 Jan 2009 13:25:53 GMT
Server: Apache/2.2.9 (Fedora)
Allow: GET,HEAD,POST,OPTIONS,TRACE
Content-Length: 0
Connection: close
Content-Type: httpd/unix-directory
#3 Client => Server
PROPFIND /svn HTTP/1.1
Content-Length: 0
Depth: 0
translate: f
User-Agent: Microsoft-WebDAV-MiniRedir/6.0.6001
Host: 192.168.1.9
Connection: Keep-Alive
#4 Client <= Server
HTTP/1.1 207 Multi-Status
Date: Fri, 30 Jan 2009 13:25:53 GMT
Server: Apache/2.2.9 (Fedora)
Content-Length: 1227
Connection: close
Content-Type: text/xml; charset="utf-8"
<?xml version="1.0" encoding="utf-8"?>
<D:multistatus xmlns:D="DAV:">
<D:response xmlns:S="http://subversion.tigris.org/xmlns/svn/" xmlns:C="http://subversion.tigris.org/xmlns/custom/" xmlns:V="http://subversion.tigris.org/xmlns/dav/" xmlns:lp1="DAV:" xmlns:lp3="http://subversion.tigris.org/xmlns/dav/" xmlns:lp2="http://apache.org/dav/props/">
<D:href>/svn/</D:href>
<D:propstat>
<D:prop>
<lp1:resourcetype><D:collection/></lp1:resourcetype>
<lp1:getcontenttype>text/html; charset=UTF-8</lp1:getcontenttype>
<lp1:getetag>W/"2//"</lp1:getetag>
<lp1:creationdate>2009-01-30T13:14:08.558051Z</lp1:creationdate>
<lp1:getlastmodified>Fri, 30 Jan 2009 13:14:08 GMT</lp1:getlastmodified>
<lp1:checked-in><D:href>/svn/!svn/ver/2/</D:href></lp1:checked-in>
<lp1:version-controlled-configuration><D:href>/svn/!svn/vcc/default</D:href></lp1:version-controlled-configuration>
<lp1:version-name>2</lp1:version-name>
<lp1:auto-version>DAV:checkout-checkin</lp1:auto-version>
<lp3:baseline-relative-path/>
<lp3:repository-uuid>b3951912-1cf2-414a-bb97-3eef5abec5be</lp3:repository-uuid>
<lp3:deadprop-count>0</lp3:deadprop-count>
<D:lockdiscovery/>
</D:prop>
<D:status>HTTP/1.1 200 OK</D:status>
</D:propstat>
</D:response>
</D:multistatus>
Then the system error 67 is displayed on Client.
####For your information, This is the log to drive-map to apache native dav of the same server and apache. I did "net use Q: http://myserver/dav/", and I success to map.
#1 Client => Server
OPTIONS / HTTP/1.1
translate: f
User-Agent: Microsoft-WebDAV-MiniRedir/6.0.6001
Host: 192.168.1.9
Content-Length: 0
Connection: Keep-Alive
#2 Client <= Server
HTTP/1.1 200 OK
Date: Sun, 01 Feb 2009 08:38:41 GMT
Server: Apache/2.2.9 (Fedora)
Allow: GET,HEAD,POST,OPTIONS,TRACE
Content-Length: 0
Connection: close
Content-Type: httpd/unix-directory
#3 Client=> Server
PROPFIND /dav HTTP/1.1
Content-Length: 0
Depth: 0
translate: f
User-Agent: Microsoft-WebDAV-MiniRedir/6.0.6001
Host: 192.168.1.9
Connection: Keep-Alive
#4 Client <= Server
HTTP/1.1 207 Multi-Status
Date: Sun, 01 Feb 2009 08:38:41 GMT
Server: Apache/2.2.9 (Fedora)
Content-Length: 894
Connection: close
Content-Type: text/xml; charset="utf-8"
<?xml version="1.0" encoding="utf-8"?>
<D:multistatus xmlns:D="DAV:">
<D:response xmlns:lp1="DAV:" xmlns:lp3="http://subversion.tigris.org/xmlns/dav/" xmlns:lp2="http://apache.org/dav/props/">
<D:href>/dav/</D:href>
<D:propstat>
<D:prop>
<lp1:resourcetype><D:collection/></lp1:resourcetype>
<lp1:creationdate>2009-01-30T10:10:24Z</lp1:creationdate>
<lp1:getlastmodified>Fri, 30 Jan 2009 10:10:19 GMT</lp1:getlastmodified>
<lp1:getetag>"45e0f5-1000-461b0698058c0"</lp1:getetag>
<D:supportedlock>
<D:lockentry>
<D:lockscope><D:exclusive/></D:lockscope>
<D:locktype><D:write/></D:locktype>
</D:lockentry>
<D:lockentry>
<D:lockscope><D:shared/></D:lockscope>
<D:locktype><D:write/></D:locktype>
</D:lockentry>
</D:supportedlock>
<D:lockdiscovery/>
<D:getcontenttype>httpd/unix-directory</D:getcontenttype>
</D:prop>
<D:status>HTTP/1.1 200 OK</D:status>
</D:propstat>
</D:response>
</D:multistatus>
#5 Client => Server
PROPFIND /dav HTTP/1.1
Content-Length: 0
Depth: 0
translate: f
User-Agent: Microsoft-WebDAV-MiniRedir/6.0.6001
Host: 192.168.1.9
Connection: Keep-Alive
#6 Client <= Server
HTTP/1.1 301 Moved Permanently
Date: Sun, 01 Feb 2009 08:38:41 GMT
Server: Apache/2.2.9 (Fedora)
Location: http://192.168.1.9/dav/
Content-Length: 307
Connection: close
Content-Type: text/html; charset=iso-8859-1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="http://192.168.1.9/dav/">here</a>.</p>
<hr>
<address>Apache/2.2.9 (Fedora) Server at 192.168.1.9 Port 80</address>
</body></html>
#7 Client => Server
PROPFIND /dav/ HTTP/1.1
Content-Length: 0
Depth: 0
translate: f
User-Agent: Microsoft-WebDAV-MiniRedir/6.0.6001
Host: 192.168.1.9
Connection: Keep-Alive
#8 Client <= Server
HTTP/1.1 207 Multi-Status
Date: Sun, 01 Feb 2009 08:38:41 GMT
Server: Apache/2.2.9 (Fedora)
Content-Length: 894
Connection: close
Content-Type: text/xml; charset="utf-8"
<?xml version="1.0" encoding="utf-8"?>
<D:multistatus xmlns:D="DAV:">
<D:response xmlns:lp1="DAV:" xmlns:lp3="http://subversion.tigris.org/xmlns/dav/" xmlns:lp2="http://apache.org/dav/props/">
<D:href>/dav/</D:href>
<D:propstat>
<D:prop>
<lp1:resourcetype><D:collection/></lp1:resourcetype>
<lp1:creationdate>2009-01-30T10:10:24Z</lp1:creationdate>
<lp1:getlastmodified>Fri, 30 Jan 2009 10:10:19 GMT</lp1:getlastmodified>
<lp1:getetag>"45e0f5-1000-461b0698058c0"</lp1:getetag>
<D:supportedlock>
<D:lockentry>
<D:lockscope><D:exclusive/></D:lockscope>
<D:locktype><D:write/></D:locktype>
</D:lockentry>
<D:lockentry>
<D:lockscope><D:shared/></D:lockscope>
<D:locktype><D:write/></D:locktype>
</D:lockentry>
</D:supportedlock>
<D:lockdiscovery/>
<D:getcontenttype>httpd/unix-directory</D:getcontenttype>
</D:prop>
<D:status>HTTP/1.1 200 OK</D:status>
</D:propstat>
</D:response>
</D:multistatus>
#9 Client <=> Server (principal text only)
PROPFIND /dav/VIDEO_TS HTTP/1.1
HTTP/1.1 404 Not Found (text/html)
PROPFIND /dav/AUDIO_TS HTTP/1.1
HTTP/1.1 404 Not Found (text/html)
PROPFIND /dav/DVD_RTAV HTTP/1.1
HTTP/1.1 404 Not Found (text/html)
PROPFIND /dav/VCD/ENTRIES.VCD HTTP/1.1
HTTP/1.1 404 Not Found (text/html)
PROPFIND /dav/MPEGAV HTTP/1.1
HTTP/1.1 404 Not Found (text/html)
PROPFIND /dav/SVCD/ENTRIES.SVD HTTP/1.1
HTTP/1.1 404 Not Found (text/html)
PROPFIND /dav/HQVCD/ENTRIES.VCD HTTP/1.1
HTTP/1.1 404 Not Found (text/html)
PROPFIND /dav/VIDEO_RM HTTP/1.1
HTTP/1.1 404 Not Found (text/html)
PROPFIND /dav/HIGHMAT HTTP/1.1
HTTP/1.1 404 Not Found (text/html)
Then the success message is displayed.
There are some differences between svn and dav.
I’m looking forward to hear from you.
Thank you.
Tetsuya Suga
--------------------------------------
Power up the Internet with Yahoo! Toolbar.
http://pr.mail.yahoo.co.jp/toolbar/
--------------------------------------
Power up the Internet with Yahoo! Toolbar.
http://pr.mail.yahoo.co.jp/toolbar/
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] I CanNot access to svn-reps via apache-webdav.
I Can access to nomal webdav of apache...
Posted by André Warnier <aw...@ice-sa.com>.
Tetsuya Suga wrote:
[...]
First in general, as you probably know already, the behaviour of the
Microsoft DAV interface has always been quite unpredictable, and has
changed many times depending on the version, the patches, the operating
system, whether or not Microsoft Office was installed, etc..
Maybe the Vista version is better, but maybe not.
See here for more information :
http://greenbytes.de/tech/webdav/webdav-redirector-list.html
(and that list has been recently updated and made a lot shorter, there
were many, many versions before that, and many with problems).
>
> I guess that maybe Mini-Redirector should be "PROPFIND /svn/". Now it is "PROPFIND /svn".
If that is the problem, it should be easy to fix using mod_rewrite.
You could arrange to add a RewriteCond and a RewriteRule that would do
this internally in Apache, instead of sending a redirect to the client
(in this case the Microsoft DAV client).
> Apache apply the "redirect-carefully" when the target of the access is Apache's webdav, so I can access to apache native webdav. However apache don't apply it when the target is SVN's webdav, So I cannot. This is my suggestion. So there are any evidences...
>
Considering the usual setup, I do not think that the above guess is correct.
Your BrowserMatch directive is at the level of the Server, not at the
level of the "/dav" Location.
So it should have effect in the "/svn" Location, as well as in the
"/dav" location. There should be no difference.
You can always try to move the "BrowserMatch" directive, and copy it
under *both* of your locations "/dav" and "/svn". Like :
<Location /dav>
BrowserMatch ...
</Location>
<Location /svn>
BrowserMatch ...
</Location>
But, there is something strange in part of your original post :
If I take this part (see below, between -begin- and -end-) :
It looks like :
1) client -> server : PROPFIND /dav
2) server -> client : 207 multi-status (Dav response)
3) client -> server : PROPFIND /dav (again ? why ?)
4) server -> client : 301 Moved Permanently (why now and not the 1st
time ?)
5) client -> server : PROPFIND /dav/ (that#s ok, it is the response to
the 301 from the server)
There are several questions there :
1) why does the server respond the first time to the "/dav", without a
301 redirect, but not the second time ?
2) why does the client ask again, if it already had the response to the
first "/dav" ?
---begin---
#3 Client=> Server
PROPFIND /dav HTTP/1.1
Content-Length: 0
Depth: 0
translate: f
User-Agent: Microsoft-WebDAV-MiniRedir/6.0.6001
Host: 192.168.1.9
Connection: Keep-Alive
#4 Client <= Server
HTTP/1.1 207 Multi-Status
Date: Sun, 01 Feb 2009 08:38:41 GMT
Server: Apache/2.2.9 (Fedora)
Content-Length: 894
Connection: close
Content-Type: text/xml; charset="utf-8"
<?xml version="1.0" encoding="utf-8"?>
<D:multistatus xmlns:D="DAV:">
[etc..]
#5 Client => Server
PROPFIND /dav HTTP/1.1
Content-Length: 0
Depth: 0
translate: f
User-Agent: Microsoft-WebDAV-MiniRedir/6.0.6001
Host: 192.168.1.9
Connection: Keep-Alive
#6 Client <= Server
HTTP/1.1 301 Moved Permanently
Date: Sun, 01 Feb 2009 08:38:41 GMT
Server: Apache/2.2.9 (Fedora)
Location: http://192.168.1.9/dav/
Content-Length: 307
Connection: close
Content-Type: text/html; charset=iso-8859-1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="http://192.168.1.9/dav/">here</a>.</p>
<hr>
<address>Apache/2.2.9 (Fedora) Server at 192.168.1.9 Port 80</address>
</body></html>
#7 Client => Server
PROPFIND /dav/ HTTP/1.1
Content-Length: 0
Depth: 0
translate: f
User-Agent: Microsoft-WebDAV-MiniRedir/6.0.6001
Host: 192.168.1.9
Connection: Keep-Alive
#8 Client <= Server
HTTP/1.1 207 Multi-Status
Date: Sun, 01 Feb 2009 08:38:41 GMT
Server: Apache/2.2.9 (Fedora)
Content-Length: 894
Connection: close
Content-Type: text/xml; charset="utf-8"
<?xml version="1.0" encoding="utf-8"?>
<D:multistatus xmlns:D="DAV:">
<D:response xmlns:lp1="DAV:"
[etc..]
---end---
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Re: [users@httpd] I CanNot access to svn-reps via apache-webdav. I Can access to nomal webdav of apache...
Posted by Tetsuya Suga <t_...@yahoo.co.jp>.
Thank you for your quick replying.
> I just thought that maybe it was the usual port issue with Microsoft's DAV
> interface.
I think so, too. Mini-redirector has many bugs until now. So I don't trust it...
> For once, that is not so surprising, because I imagine also that the normal
> client used to connect to DAV-svn must be some SVN-aware client, no ?
I can't understand the meaning of "SVN-aware client". sorry
But I can access to my svn as webdav from AnyClient. I can access from "CarotDAV"(Japanese person made). There are no problems. it works well.
> Have you tried connecting directly to that DAV-svn interface, not using a
> "net use", but directly from whatever SVN client you intend to use (like
> TortoiseSVN for example) ?
I can access to my svn (http://192.168.1.9/svn) from TortoiseSVN well.
I guess that maybe Mini-Redirector should be "PROPFIND /svn/". Now it is "PROPFIND /svn".
Apache apply the "redirect-carefully" when the target of the access is Apache's webdav, so I can access to apache native webdav. However apache don't apply it when the target is SVN's webdav, So I cannot. This is my suggestion. So there are any evidences...
Tetsuya
2009/2/1 André Warnier <aw...@ice-sa.com>:
> Tetsuya Suga wrote:
> [...]
> Sorry then, I cannot help you further.
> I just thought that maybe it was the usual port issue with Microsoft's DAV
> interface.
>
> Going back to your original post (very complete, thanks), I can see that the
> response to PROPFIND is very different between the "normal DAV" and
> "DAV-svn". I can only imagine that Microsoft Vista's DAV redirector does
> not like what it gets from DAV-svn, and refuses to connect to it.
>
> For once, that is not so surprising, because I imagine also that the normal
> client used to connect to DAV-svn must be some SVN-aware client, no ?
> Have you tried connecting directly to that DAV-svn interface, not using a
> "net use", but directly from whatever SVN client you intend to use (like
> TortoiseSVN for example) ?
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
--
Tetsuya SUGA
From JAPAN.
--------------------------------------
Power up the Internet with Yahoo! Toolbar.
http://pr.mail.yahoo.co.jp/toolbar/
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] I CanNot access to svn-reps via apache-webdav.
I Can access to nomal webdav of apache...
Posted by André Warnier <aw...@ice-sa.com>.
Tetsuya Suga wrote:
[...]
Sorry then, I cannot help you further.
I just thought that maybe it was the usual port issue with Microsoft's
DAV interface.
Going back to your original post (very complete, thanks), I can see that
the response to PROPFIND is very different between the "normal DAV" and
"DAV-svn". I can only imagine that Microsoft Vista's DAV redirector
does not like what it gets from DAV-svn, and refuses to connect to it.
For once, that is not so surprising, because I imagine also that the
normal client used to connect to DAV-svn must be some SVN-aware client, no ?
Have you tried connecting directly to that DAV-svn interface, not using
a "net use", but directly from whatever SVN client you intend to use
(like TortoiseSVN for example) ?
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Re: [users@httpd] I CanNot access to svn-reps via apache-webdav. I Can access to nomal webdav of apache...
Posted by Tetsuya Suga <t_...@yahoo.co.jp>.
Hello,
Thank you for replying.
I tried to access with port-number, but I couldn't.
I can access to apache's native webdav. So I think there must be a
difference between apache and subversion...
Tetsuya
--- André Warnier wrote:
> Tetsuya Suga wrote:
> [...]
>
> >
> > net use Q: http://myserver/svn/ <=== I cannot success.
> >
> > System error 67 has occurred.
> > The network name cannot be found. (displayed in Japanese)
> >
> Try :
>
> net use Q: http://myserver:80/svn/
>
> (without the explicit port number, Windows may be trying to access this
> as a Windows network name (NETBIOS)).
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
--------------------------------------
Power up the Internet with Yahoo! Toolbar.
http://pr.mail.yahoo.co.jp/toolbar/
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] I CanNot access to svn-reps via apache-webdav.
I Can access to nomal webdav of apache...
Posted by André Warnier <aw...@ice-sa.com>.
Tetsuya Suga wrote:
[...]
>
> net use Q: http://myserver/svn/ <=== I cannot success.
>
> System error 67 has occurred.
> The network name cannot be found. (displayed in Japanese)
>
Try :
net use Q: http://myserver:80/svn/
(without the explicit port number, Windows may be trying to access this
as a Windows network name (NETBIOS)).
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org