[Cyberduck-trac] [Cyberduck] #4427: WebDAV: Rename specifies Overwrite F when overwriting an existing file/folder
Cyberduck
trac at trac.cyberduck.ch
Mon Apr 26 21:08:59 CEST 2010
#4427: WebDAV: Rename specifies Overwrite F when overwriting an existing
file/folder
---------------------------+------------------------------------------------
Reporter: Chris Byrne | Owner: dkocher
Type: defect | Status: new
Priority: normal | Milestone:
Component: webdav | Version: 3.4.2
Severity: normal | Keywords: webdav folder overwrite rename
Platform: Mac OS X 10.5 |
---------------------------+------------------------------------------------
When renaming a folder/file the user is asked if they want to overwrite
the destination if it already exists. This rename fails with a conformant
WebDAV server as the Overwrite header is set to F.
From RFC 4918 http://www.webdav.org/specs/rfc4918.html#METHOD_MOVE
> If a resource exists at the destination and the Overwrite header is "T",
then prior to performing the move, the server must perform a DELETE with
"Depth: infinity" on the destination resource. If the Overwrite header is
set to "F", then the operation will fail.
'''Steps to reproduce:'''
1. Create two folders "a" and "b"
1. Rename "b" to "a"
1. Yes, you want to rename the existing file
'''Expected Results:'''
Folder "a" to be deleted, and folder "b" to be renamed to "a"
'''Actual Results:'''
I/O Error: Cannot rename folder
{{{
MOVE /files/b HTTP/1.1[\r][\n]
Authorization: Basic Y2hyaXM6[\r][\n]
User-Agent: Cyberduck/3.4.2 (5902) (Mac OS X/10.5.8) (i386)[\r][\n]
Host: 172.16.50.204[\r][\n]
Content-Length: 0[\r][\n]
Destination: http://172.16.50.204/files/a[\r][\n]
Overwrite: F[\r][\n]
[\r][\n]
HTTP/1.1 409 Precondition Failed[\r][\n]
HTTP/1.1 409 Precondition Failed[\r][\n]
Content-Length: 215[\r][\n]
Connection: Keep-Alive[\r][\n]
[\r][\n]
}}}
Where the precondition failure is:
> The requested destination "http://172.16.50.204/files/b" is already
mapped to a resource
--
Ticket URL: <http://trac.cyberduck.ch/ticket/4427>
Cyberduck <http://cyberduck.ch>
FTP, SFTP, WebDAV, Cloud Files and Amazon S3 Browser for Mac OS X.
More information about the Cyberduck-trac
mailing list