-
Notifications
You must be signed in to change notification settings - Fork 470
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when update zero size file through Webdav or CLI. #24042
Comments
@wezell should webdav consider the property |
Many of our installs set |
@EdgarPsda could you please check what Will said? |
Ok guys, I will do my test locally. |
@nollymar actually I'm able to upload/update zero file size, the only thing here is that the error message comes when you hit the action. |
Introduced a new unit test to ensure publishing an existing file with empty content does not fail. Also, updated `DotWebdavHelper` to prevent deletion of the current version of contentlets during cleanup.
Internal QA: Passed.The issue couldn't be reproduced anymore. It was tested using the docker image Screen.Recording.2024-09-26.at.15.41.53-480.mov |
Problem Statement
When try to update a zero size file through webdav an error appears, this error is related with a
fk_contentlet_version_info_working
value.Steps to Reproduce
Windows commands:
Create zero size file
type nul > zero-size.file
Create non-zero size file
echo not empty > non-zero-size.file
Check the file sizes
dir *.file
Upload non-zero size file with webdav using curl
curl --verbose --user "[email protected]:admin" -T ".\non-zero-size.file" https://demo.dotcms.com/webdav/live/1/demo.dotcms.com/test-file.vtl
Upload zero size file with webdav using curl
curl --verbose --user "[email protected]:admin" -T ".\zero-size.file" https://demo.dotcms.com/webdav/live/1/demo.dotcms.com/test-file.vtl
Linux commands:
Create zero size file
touch zero-size.file
Create non-zero size file
echo not empty > non-zero-size.file
Check the file sizes
ls *.file -al
Upload non-zero size file with webdav using curl
curl --verbose --user '[email protected]:admin' -T './non-zero-size.file' https://demo.dotcms.com/webdav/live/1/demo.dotcms.com/test-file.vtl
Upload zero size file with webdav using curl
curl --verbose --user '[email protected]:admin' -T './zero-size.file' https://demo.dotcms.com/webdav/live/1/demo.dotcms.com/test-file.vtl
Following error message appears when upload/update zero size file:
Acceptance Criteria
In both cases (zero file size or non-zero file size) the file can be updated/upload and it's showing good results in backend dashboard, but those error messages still in the system logs.
dotCMS Version
This was tested locally with 22.03.2 version and demo site 23.01.
Proposed Objective
Application Performance
Proposed Priority
Priority 3 - Average
External Links... Slack Conversations, Support Tickets, Figma Designs, etc.
https://dotcms.zendesk.com/agent/tickets/109728
Assumptions & Initiation Needs
No response
Sub-Tasks & Estimates
No response
The text was updated successfully, but these errors were encountered: