jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julian Reschke <julian.resc...@gmx.de>
Subject Re: Response for put request ...
Date Sun, 22 Feb 2009 12:35:23 GMT
imadhusudhanan wrote:
>   Dear All,
> 
>     I have a Warning in the windows client saying "An error while 
> copying some or all the files". I had extended the SimpleWebDavServlet 
> and written a custom doPut() method that overrides that of the 
> AbstractWebdavServlet so that any put request is redirected to my 
> FileStore instead staying in JackRabbit repository. But as a response I 
> use the following code ...
> 
>                  DavPropertyNameSet dns = new DavPropertyNameSet();
>                  dns.add(DavPropertyName.DISPLAYNAME);
>                  dns.add(DavPropertyName.CREATIONDATE);
>                  MultiStatusResponse msr = new 
> MultiStatusResponse(resource, dns);
>                  MultiStatus ms = new MultiStatus();
>                  ms.addResponse(msr);
>                  response.sendMultiStatus(ms);
> 
>     I hope it sends a multi - status response, but I get that error 
> warning in windows WebFolders client and nothing shown. Any suggestions 
> how I do I send a response for doPut() after a successful upload ??

I'd be surprised if any client accepts a 207 (Multistatus) as a response 
to a successful PUT.

Best regards, Julian



Mime
View raw message