core icon indicating copy to clipboard operation
core copied to clipboard

Uploading empty file using WebDAV should trigger exception

Open shaydotcms opened this issue 10 years ago • 3 comments

Related to #9197 There should be an exception in the logs when you try to upload a 0 bytes file using WebDAV and the property CONTENTALLOWZEROLENGTHFILES=false. Currently the file is uploaded successfully and you can also edit an empty file without problems from WebDAV.

Steps to reproduce:

  1. Connect to dotcms using Webdav(Finder or Cyberduck). Follow this documentation to set up the connection property: http://auth.dotcms.com/docs/latest/upload-and-edit-via-webdav#MacOS
  2. Use Finder to upload an empty file to dotcms
  3. You will see there’s no exception in the logs and the file is uploaded successfully

Tested locally with Finder and Cyberduck in: master-3.6 // Mac OS 10.10 // MySQL 5.6.23 // Firefox

shaydotcms avatar Jul 01 '16 22:07 shaydotcms

PR: https://github.com/dotCMS/core/pull/9331. Tested with the property set to true, so files with 0 bytes upload without throwing the exception.

erickgonzalez avatar Jul 06 '16 20:07 erickgonzalez

Added to webdav documentation: http://auth.dotcms.com/docs/latest/upload-and-edit-via-webdav#EmptyFiles

DeanGonzalez avatar Jul 06 '16 22:07 DeanGonzalez

Issue needs work. Related to bug #9334

shaydotcms avatar Jul 07 '16 15:07 shaydotcms