core icon indicating copy to clipboard operation
core copied to clipboard

Add support for multi-language Files to WebDAV

Open dsilvam opened this issue 10 years ago • 8 comments

dsilvam avatar Jun 08 '16 13:06 dsilvam

So if this is configed for legacy webdav pathing /autopub/dotcms.com/images/my-image.jpg

If this is not configured, the defualt will look like /live/dotcms.com/1/images/my-image.jpg

wezell avatar Jun 17 '16 15:06 wezell

property name: WEBDAV_LEGACY_PATHING, defaults to false

dsilvam avatar Jun 20 '16 18:06 dsilvam

Decided to path to these this way /live/1/dotcms.com/images/my-image.jpg

and the connect endpoint is

/webdav/live/1

wezell avatar Jun 20 '16 19:06 wezell

PR: https://github.com/dotCMS/core/pull/9276

erickgonzalez avatar Jun 27 '16 19:06 erickgonzalez

Already tested the following scenarios with cyberduck:

  • ADMIN/LIVE & ADMIN/NONPUB: create, download, edit, delete, rename, duplicate, move folder and files.
  • LIMITED USER/WORKING & LIMITED USER/AUTOPUB: create folder and create, download, edit, delete, rename, duplicate, move files.

erickgonzalez avatar Jun 27 '16 20:06 erickgonzalez

Documented: http://auth.dotcms.com/docs/latest/editing-with-webdav Documented: http://auth.dotcms.com/docs/latest/upload-and-edit-via-webdav

However, we need to still test/consider the case of updating the same file with different language versions via webdav. At first thought, dropping a file of the same name, while using a different language id for the webdav connection, should create a new language version version of the file. There should not be a conflict. This is consistent with prior behavior. Before, if you uploaded a file with the same name via webdav, it would create another version of the same file. (This is our documented functionality before 3.6)

DeanGonzalez avatar Jul 01 '16 01:07 DeanGonzalez

@DeanGonzalez : Doc looks nice!. We also need to include this property: WEBDAV_LEGACY_PATHING, defaults to false, which controls whether we use old pathing (autopub/nonpub) or new one

dsilvam avatar Jul 01 '16 14:07 dsilvam

Passed QA. Tested actions below:

  • Create Folder
  • Delete Folder
  • Delete File
  • Rename Folder
  • Rename File
  • Move Folder
  • Move File
  • Duplicate Folder
  • Duplicate File
  • Upload File and Edit File still need work. Issue created #9334

Tested locally in: master-3.6 // Win7 Pro SP1 // SQLServer 2012 // Firefox

shaydotcms avatar Jul 07 '16 19:07 shaydotcms