Issue Details (XML | Word | Printable)

Key: VFS-207
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Jason Harrop
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Commons VFS

PATCH for Webdav - faulty test for existence causes PUT of new resource to fail

Created: 09/Apr/08 02:26 PM   Updated: 09/Apr/08 02:26 PM
Return to search
Component/s: None
Affects Version/s: 1.0, 1.1
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works patch-testexistence.txt 2008-04-09 02:26 PM Jason Harrop 6 kB


 Description  « Hide
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)



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Jason Harrop made changes - 09/Apr/08 02:26 PM
Field Original Value New Value
Attachment patch-testexistence.txt [ 12379731 ]