tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stratmann, Holger" <hol...@cassiopeia.de>
Subject Re: WebDav Problems (same problem + hint)
Date Sat, 11 Jan 2003 23:47:54 GMT
> The second problem is that webdav does not work correctly (it gets
> problems with directory names) when I change its url mapping. 

Yes, I have the same problem and I really think it's a "bug" in the servlet.

It doesn't seem to consider its url mapping internally (not at all or not
correctly).

I tried the following:

MyDavServlet extends WebdavServlet {
    protected String getRelativePath(HttpServletRequest request) {
		String res = super.getRelativePath(request);
		System.err.println("translating path " + res);
		if (res.startsWith("/XDAV")) res = res.substring(5);
		if (res.length() < 1) return "/";
		return res;
	}
}

Without this modification, Windows webfolders do not work at all.
With this modification, they work, but not 100% correctly.
Every folder (collection) also seems to contain itself. Funny effect.

==> My "patch" is not the solution, but probably a pointer to the problem...
I haven't spent more time with it (yet) because I don't use it yet. I just
stumbled across this problem after just 10 minutes of experimenting :-(((

Holger


> We have to
> do that because we want to integrate webdav into our application. The
> problems occur with the original tomcat-4.1.18 after modifying the url
> mapping.
> Any ideas how to solve this problem?
> 
> Zsolt
> 
> Modified web.xml
> <servlet-mapping>
>     <servlet-name>webdav</servlet-name>
>     <url-pattern>/webdav/*</url-pattern>
>   </servlet-mapping>
> 
> Original web.xml:
> <servlet-mapping>
>     <servlet-name>webdav</servlet-name>
>     <url-pattern>/</url-pattern>
>   </servlet-mapping>
> -- 
> Intland GmbH www.intland.com
> Schulze-Delitzsch-Str. 16
> 70565 Stuttgart
> Tel: +49-711-7221873 Fax: +49-1212-5168-29527
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:tomcat-user-help@jakarta.apache.org>
> 

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message