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
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.