|
From: Pier F. <pi...@be...> - 2006-03-29 10:04:29
|
Ahhhh..
Well spotted, for when the repository is relative to the web-
application's root... Didn't test it recently. I committed it to CVS.
Will wait a little bit for another round of bugs to come in and re-
roll a new version...
But the odd thing is that I fixed the same thing over into
DAVUtilities, and I thought it was odd... Was Jetty 4 by any chance
allowing resources not starting with a "/" to be read??? (Just curious)
Pier
On 29 Mar 2006, at 09:30, Greg Wilkins wrote:
>
> Pier,
>
> I'm having trouble running your servlet because you want to call
> ServletContext.getResource("dav");
>
> but getResource must take a path starting with "/":
>
>
> * Returns a URL to the resource that is mapped to a specified
> * path. The path must begin with a "/" and is interpreted
> * as relative to the current context root.
>
> I think your code should be:
>
> File root = new File(rootPath);
> if (! root.isAbsolute()) {
> URL url = this.context.getResource("/"+rootPath);
>
> cheers
>
>
> Pier Fumagalli wrote:
>> A new 0.3 release of the WebDav servlet is available for download.
>>
>> This long-awaited new version fixes a number of issues:
>>
>> * Fix for when the servlet is deployed in a non-root context.
>> * The servlet does not issue redirects anymore, to enhance
>> compatibility with WebDAV clients.
>> * Microsoft WebFolder is 100% supported and works perfectly.
>> * Problems with wrong links and URLs have all been fixed.
>> * Installation documentation now restored on-line.
>>
>> I would like to thanks all those people who helped me in getting this
>> release done, and especially Sylvain Pedneault, Steve Willis, Thijs
>> Suijten, Pier-Alexandre Losson.
>>
>> <http://could.it/main/a-simple-approach-to-webdav.html>
>>
>> Pier
>>
>>
>
|