Skip Menu |

This queue is for tickets about the Apache-WebDAV CPAN distribution.

Report information
The Basics
Id: 39286
Status: new
Priority: 0/
Queue: Apache-WebDAV

People
Owner: Nobody in particular
Requestors: peter [...] makholm.net
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.01
Fixed in: (no value)



Subject: COPY and MOVE only creates top level collection if collection tree dosn't contain non-collection ressources
If you try to copy a tree of collection which doesn't contain real files, the copy method returns 201 (OK) right after creating the top level collection. As MOVE is implemented by copying and then deleting the source on success this will leave you with no data after an seamingly successfull MOVE operation. (unless you trigger bug #39285 which leaves you with some almost random collection of data)
From: peter [...] makholm.net
On Mon Sep 15 05:49:13 2008, pmakholm wrote: Show quoted text
> If you try to copy a tree of collection which doesn't contain real > files, the copy method returns 201 (OK) right after creating the top > level collection.
Easy fixed by just removing the following section from the copy method: # If there are no files, we need to properly return from here. if(!scalar(@files)) { return 201; }