You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Jason Harrop (JIRA)" <ji...@apache.org> on 2008/04/09 16:28:24 UTC

[jira] Updated: (VFS-207) PATCH for Webdav - faulty test for existence causes PUT of new resource to fail

     [ https://issues.apache.org/jira/browse/VFS-207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jason Harrop updated VFS-207:
-----------------------------

    Attachment: patch-testexistence.txt

> PATCH for Webdav - faulty test for existence causes PUT of new resource to fail
> -------------------------------------------------------------------------------
>
>                 Key: VFS-207
>                 URL: https://issues.apache.org/jira/browse/VFS-207
>             Project: Commons VFS
>          Issue Type: Improvement
>    Affects Versions: 1.0, 1.1
>            Reporter: Jason Harrop
>         Attachments: patch-testexistence.txt
>
>
> org.apache.commons.vfs.provider.webdav.WebdavFileObject.setDavResource seeks to determine whether a specified resource exists already or not.  
> At present, it checks whether COPY is an allowed method, and if it is, the resource is assumed to exist.  
> According to the code, this works on IIS.
> It doesn't work for Alfresco's WebDAV implementation, at least.  This causes the PUT of a new resource to fail.
> The attached patch uses a PROPFIND to determine whether the resource exists.  (It also contains the simple fix to the argument to setEscapedPath)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.