Hi everyone
Summary: i can't access the slide webdav functionality with the web.xml
file below from Windows using IE5.5's open as web folder (NT 4 and 2000
machines), but i can via Windows 2000 network neighbourhood, and via the
slide command line client. I can use the IE5.5 open as webfolder
functionality with slide.war (plain vanilla configuration).
I'm using a custom Domain.xml file, SlideRealm, and web.xml, and can't
figure out why i'm getting this odd behaviour with one client only, and
then only when i don't use a vanilla setup.
My webapp is called TestDrive, and my web.xml contains:
<servlet>
<servlet-name>webdav</servlet-name>
<servlet-class>org.apache.slide.webdav.WebdavServlet</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<init-param>
<param-name>namespace</param-name>
<param-value>TestDrive</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<!-- The mapping for the Slide WebDAV servlet -->
<servlet-mapping>
<servlet-name>webdav</servlet-name>
<url-pattern>/protected/webdav/*</url-pattern>
</servlet-mapping>
I am also using SlideRealm, with:
<security-constraint>
<web-resource-collection>
<web-resource-name>TestDrive resource</web-resource-name>
<url-pattern>/protected/*</url-pattern>
When i try the url http://192.168.1.9/TestDrive/webdav/files using IE's
File-Open with open as webfolder ticked (which has worked perfectly well
in the past ie with Tomcat 4 a month or so old and slide a few days
old), Windows says it can't open the page as a web folder, and the Slide
logs say:
192.168.1.44 - - [17/Feb/2001:21:19:22 10000] "OPTIONS / HTTP/1.1" 200 -
192.168.1.44 - - [17/Feb/2001:21:19:22 10000] "GET /_vti_inf.html
HTTP/1.1" 404 -
192.168.1.44 - - [17/Feb/2001:21:19:22 10000] "POST
/_vti_bin/shtml.exe/_vti_rpc HTTP/1.1" 200 -
192.168.1.44 - - [17/Feb/2001:21:19:22 10000] "OPTIONS /TestDrive
HTTP/1.1" 200 -
(you'll see from the log of a "Add Network Place" dialog at the bottom
of this post that we expect that last OPTIONS statement to contain the
path /TestDrive/protected/webdav/files, and then there to be an
authentication challenge, which there would be if the longer path were
requested. )
Nothing is logged to catalina.out.
As i said, i can use webdav via both the slide webdav command line
client, and Windows 2000 Network neighbourhood - Add network place:
slide command line client
-------------------------
==> catalina.out <==
17 Feb 2001 21:45:41 - INFO - PROPFIND (time: 1502 ms) URI = /
==> TestDrive_localhost_access_log.2001-02-17.txt <==
192.168.1.10 - - [17/Feb/2001:21:45:39 10000] "PROPFIND
/TestDrive/protected/webdav/ HTTP/1.1" 401 -
192.168.1.10 - rAdminUser [17/Feb/2001:21:45:41 10000] "PROPFIND
/TestDrive/protected/webdav/ HTTP/1.1" 207 13077
==> TestDrive_localhost_log.2001-02-17.txt <==
2001-02-17 21:45:39 StandardHost[localhost]: Mapping request URI
'/TestDrive/protected/webdav/'
2001-02-17 21:45:39 StandardHost[localhost]: Trying the longest
context path prefix
2001-02-17 21:45:39 StandardHost[localhost]: Mapped to context '/TestDrive'
2001-02-17 21:45:39 StandardHost[localhost]: Mapping request URI
'/TestDrive/protected/webdav/'
2001-02-17 21:45:39 StandardHost[localhost]: Trying the longest
context path prefix
2001-02-17 21:45:39 StandardHost[localhost]: Mapped to context '/TestDrive'
Windows 2000 - MyNetworkPlaces-Add Network Place
------------------------------------------------
(takes a bit of cajoling - Windows does give some singularly unhelpful
error messages along the way) - you can see it is requesting the right
folders (unlike Internet Explorer).
First, type URL in box:
192.168.1.41 - - [18/Feb/2001:01:00:07 10000] "OPTIONS
/TestDrive/protected/webdav HTTP/1.1" 401 -
192.168.1.41 - - [18/Feb/2001:01:00:07 10000] "GET /_vti_inf.html
HTTP/1.1" 404 -
192.168.1.41 - - [18/Feb/2001:01:00:07 10000] "POST
/_vti_bin/shtml.exe/_vti_rpc HTTP/1.1" 200 -
192.168.1.41 - - [18/Feb/2001:01:00:07 10000] "OPTIONS
/TestDrive/protected/webdav/files HTTP/1.1" 401 -
Then type username/password in response to challenge:
192.168.1.41 - - [18/Feb/2001:01:01:52 10000] "OPTIONS
/TestDrive/protected/webdav/files HTTP/1.1" 401 -
192.168.1.41 - rAdminUser [18/Feb/2001:01:01:52 10000] "OPTIONS
/TestDrive/protected/webdav HTTP/1.1" 200 -
192.168.1.41 - rAdminUser [18/Feb/2001:01:01:52 10000] "PROPFIND
/TestDrive/protected/webdav/files HTTP/1.1" 207 836
18 Feb 2001 01:01:52 - INFO - OPTIONS (time: 53 ms) URI =
/protected/webdav <-------------- weird that this URI is sometimes
lsited?
Executing getPassword for username: rAdminUser
.. password is rAdminUser
18 Feb 2001 01:01:53 - INFO - PROPFIND (time: 141 ms) URI = /files
Then click "finish"
192.168.1.41 - rAdminUser [18/Feb/2001:01:06:36 10000] "PROPFIND
/TestDrive/protected/webdav/files HTTP/1.1" 207 4107
Executing getPassword for username: rAdminUser
.. password is rAdminUser
18 Feb 2001 01:06:36 - INFO - PROPFIND (time: 653 ms) URI = /files
Thanks for any suggestions as to where i should start digging to solve
this puzzle.
cheers,
Jason
ps, the only further experiment i can think of is to try slide.war with
a security constraint in place, but that'll have to wait until the morning!!