For future reference.... the WEBDAV problems between Microsoft and Tomcat
seem to be as follows....
First thanks for pointing me to the MS patch, although like the other poster
said... it didnt help, or maybe it did, but only on the MS side.

**** MICROSOFT doesnt like the lagging folder slash.... ****
Tomcats mapping wants you to use a slash at the end.... ie webapp/webdav/
When the MS webfolder client sends a request, it drops that lagging
slash.... and tomcat promptly tells it to get lost.... see below for actual
web conversations

Ok... this is not too big a problem to solve... I created a servlet mapped
to
/webapp/webdav/start   (no lagging slash) and dispatched the requests off to
/webapp/webdav/
This solves the lagging slash problem... so now MS and tomcat will actually
talk

**** Tomcat thinks Microsoft is an alien ******

But unfortunately, tomcat thinks microsoft is asking stupid questions and
really craps all
over MS..... "PROPFIND is not defined in RFC 2068".... go play with yourself
MS ;)

It (PROPFIND) does actually seem to be defined in
http://www.ietf.org/rfc/rfc2518.txt
and it seems MS was the main modifier of the RFC....

So there you have it.... RFC 2068 is now too old.... because it seems MS
just had the spec changed and didnt bother with any compatibility... like
role back to 2068 if a new feature failed.
I dont know anything about webdav, it could be the old rfc was impossible to
make work with the system shell, or they just figured, stuff it, we the
desktop standard anyway, we'll do it our way..... hey Bill, change the spec
;)... who knows?

Anyway it seems 2 things need to happen.... tomcat needs to be brought up to
the current rfc, and all MS users out there beg the developer to please
allow it to work with and without the lagging slash.... then I think life
will be good in webdav lane ;)

As it stands.... it will never work with MS

======= Here is the lagging slash problem web conversation ======

PROPFIND /TestRemoteIp/webdav HTTP/1.1       (MICROSOFT drops the slash)

Content-Language: en-us

Accept-Language: en-za, en-us;q=0.2

Content-Type: text/xml

Translate: f

Depth: 1

Content-Length: 489

User-Agent: Microsoft Data Access Internet Publishing Provider DAV

Host: hplt1:8080

Connection: Keep-Alive



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

<a:propfind xmlns:a="DAV:" xmlns:b="urn:schemas-microsoft-com:datatypes">

<a:prop>

<a:name/>

<a:parentname/>

<a:href/>

<a:ishidden/>

<a:isreadonly/>

<a:getcontenttype/>

<a:contentclass/>

<a:getcontentlanguage/>

<a:creationdate/>

<a:lastaccessed/>

<a:getlastmodified/>

<a:getcontentlength/>

<a:iscollection/>

<a:isstructureddocument/>

<a:defaultdocument/>

<a:displayname/>

<a:isroot/>

<a:resourcetype/>

</a:prop>

</a:propfind>


HTTP/1.1 404 /webdav

Server: Apache-Coyote/1.1

Content-Type: text/html;charset=utf-8

Content-Length: 973

Date: Mon, 23 Jul 2007 09:40:55 GMT

<html><head><title>Apache Tomcat/5.5.23 - Error report</title><style><!--H1
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
H2
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
H3
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
BODY
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
P
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
{color : black;}A.name {color : black;}HR {color : #525D76;}--></style>
</head><body><h1>HTTP Status 404 - /webdav</h1><HR size="1"
noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b>
<u>/webdav</u></p><p><b>description</b> <u>The requested resource (/webdav)
is
not available.</u></p><HR size="1" noshade="noshade"><h3>Apache
Tomcat/5.5.23</h3></body></html>
==========================================

======= Here is the dont ask stupid questions conversation======

PROPFIND /TestRemoteIp/webdav/start HTTP/1.1

Content-Language: en-us

Accept-Language: en-za, en-us;q=0.5

Content-Type: text/xml

Translate: f

Depth: 0

Content-Length: 0

User-Agent: Microsoft Data Access Internet Publishing Provider DAV

Host: hplt1:8080

Connection: Keep-Alive

Cookie: JSESSIONID=6AF6D3D8CB24D0311A4641068C4AA21D




HTTP/1.1 501 Method PROPFIND is not defined in RFC 2068 and is not supported
by the Servlet API

Server: Apache-Coyote/1.1

Content-Type: text/html;charset=utf-8

Content-Length: 1238

Date: Mon, 23 Jul 2007 09:29:35 GMT

Connection: close


(MICROSOFT is told that it cant talk webdav 2068)
<html><head><title>Apache Tomcat/5.5.23 - Error report</title><style><!--H1
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
H2
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
H3
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
BODY
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
P
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
{color : black;}A.name {color : black;}HR {color : #525D76;}--></style>
</head><body><h1>HTTP Status 501 - Method PROPFIND is not defined in RFC
2068 and is not supported by the Serv
let API </h1><HR size="1" noshade="noshade"><p><b>type</b> Status
report</p><p><b>message</b> <u>Method PROPFIND is not defined in RFC 2068
and is not supported by the Servlet API </u></p><p><b>description</b> <u>The
server does not support the functionality needed to fulfill this request
(Method PROPFIND is not defined in RFC 2068 and is not supported by the
Servlet API ).</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/5.5
.23</h3></body></html>

=========================================================
----- Original Message -----

Hi guys,

Being using FTP, thought I would give WebDav a try, but cant get it working
nicely...

This is the mapping for the webdav servlet, and this I can get working with
IE web folders (ms webdav client).... seems to work nicely.
<servlet-mapping>
<servlet-name>webdav</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>

So I thought, nice, but it overrides the default welcome index.jsp page in
the browser... so I tried this.

<servlet-mapping>
<servlet-name>webdav</servlet-name>
<url-pattern>/webdav/*</url-pattern>
</servlet-mapping>

Now the IE browser seems to respond correctly.... ie
http://localhost:8080/webapp  will give welcome page
and http://localhost:8080/webapp/webdav/  shows the files IN THE BROWSER

But in MS you have to stick the link in a Web-Folder so that you can
manipulate files, and MS reports this (/webapp/webdav/) as not being a WEB
Folder?

So I'm wondering if this mapping is illegal from the point of view of the
webdav servlet.... or its a problem with MS Web Folders?

Thx....

________________________________________________________________

Johnny Kewl
 eMail: John<No Spam>kewlstuff.co.za  -- replace <No Spam> with @ --
 Cell: +027-72- 473-9331
Java Developer (Tomcat Aficionado)
 Free Tomcat software at  http://coolese.100free.com/
________________________________________________________________


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to