Add support for multi-language Files to WebDAV
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
property name: WEBDAV_LEGACY_PATHING, defaults to false
Decided to path to these this way
/live/1/dotcms.com/images/my-image.jpg
and the connect endpoint is
/webdav/live/1
PR: https://github.com/dotCMS/core/pull/9276
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.
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 : 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
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