Cyberduck Mountain Duck CLI

#7827 closed enhancement (worksforme)

Upload strategy when editing remote file should be configurable

Reported by: konstantin khilkevitch Owned by: dkocher
Priority: normal Milestone: 4.4.4
Component: webdav Version: 4.4.3
Severity: normal Keywords: webdav
Cc: Architecture: Intel
Platform: Mac OS X 10.9

Description (last modified by konstantin khilkevitch)

When remote file that has been fetched for editing is uploaded back to a WebDAV server, Cyberduck does the file name shuffle (PUT / MOVE) (for safety? HTTP exchange example is below). Perhaps, this behaviour should be configurable; i.e. a user should be able to choose in prefs whether the shuffle is performed or the file is uploaded (PUT) directly.

The reason for this suggestion is that WebDAV server may not be be able to retain versioning information for the target file when such a shuffle is performed.

In my case, it is the WebDAV interface of the Box.com service. When edited file is put back on box.com server, file versioning information is lost.

PUT /dav/Stuff/Leo%20Ent%20Invoice%20No1.docx-f040baf0-5c30-45b4-8ab0-f697e42ba6d6 HTTP/1.1
Expect: 100-continue
Content-Length: 68151
Content-Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document
Host: dav.box.com
Connection: Keep-Alive
User-Agent: Cyberduck/4.4.3 (Mac OS X/10.9.2) (x86_64)
Authorization: Basic xxxxx
HTTP/1.1 201 Created
Server: nginx
Date: Fri, 28 Feb 2014 20:43:03 GMT
Content-Type: text/html; charset=UTF-8
Content-Length: 0
Connection: keep-alive
ETag: "db66b2b5448ed1e752e80a493a9c850d7ada59be"


MOVE /dav/Stuff/Leo%20Ent%20Invoice%20No1.docx-f040baf0-5c30-45b4-8ab0-f697e42ba6d6 HTTP/1.1
Destination: https://dav.box.com/dav/Stuff/Leo%20Ent%20Invoice%20No1.docx
Overwrite: T
Host: dav.box.com
Connection: Keep-Alive
User-Agent: Cyberduck/4.4.3 (Mac OS X/10.9.2) (x86_64)
Authorization: Basic xxxxx
HTTP/1.1 204 No Content
Server: nginx
Date: Fri, 28 Feb 2014 20:43:05 GMT
Content-Type: text/html; charset=UTF-8
Content-Length: 0
Connection: keep-alive
Vary: Host

HEAD /dav/Stuff/Leo%20Ent%20Invoice%20No1.docx HTTP/1.1
Host: dav.box.com
Connection: Keep-Alive
User-Agent: Cyberduck/4.4.3 (Mac OS X/10.9.2) (x86_64)
Authorization: Basic xxxxxx
HTTP/1.1 200 OK
Server: nginx
Date: Fri, 28 Feb 2014 20:44:14 GMT
Content-Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document
Content-Length: 68151
Connection: keep-alive
Vary: Host
Last-Modified: Fri, 28 Feb 2014 20:43:04 GMT
ETag: "db66b2b5448ed1e752e80a493a9c850d7ada59be"

Change History (4)

comment:1 Changed on Feb 28, 2014 at 9:37:04 PM by konstantin khilkevitch

Could someone familiar with the code base point me to the relevant parts of the code? I'd like to attempt a patch if no one takes this ticket on.

comment:2 Changed on Mar 1, 2014 at 11:39:40 AM by dkocher

  • Milestone set to 4.4.4
  • Resolution set to worksforme
  • Status changed from new to closed

This is now documented in Disable upload of temporary file on save.

comment:3 Changed on Mar 1, 2014 at 11:57:58 PM by konstantin khilkevitch

This is awesome; thanks for documenting this. Shall I file a separate ticket to bring this setting into the settings GUIs?

comment:4 Changed on Mar 1, 2014 at 11:58:58 PM by konstantin khilkevitch

  • Description modified (diff)
Note: See TracTickets for help on using tickets.
swiss made software