OCA / storage

GNU Affero General Public License v3.0
70 stars 159 forks source link

[16.0][FIX] fs_file: Support for empty file #341

Closed lmignon closed 7 months ago

lmignon commented 7 months ago

Before this change the creation of empty file was not supported. The issue was mainly due to the fact that at create of a FSFileValue instance with a name but without content, the name was no preserved. As result, the insert of the attachement into the DB failed since the name is a required field. If a FSFileValue instance is now created without content but with a name, the name is now preserved on an empty buffer.

lmignon commented 7 months ago

/ocabot merge patch

OCA-git-bot commented 7 months ago

This PR looks fantastic, let's merge it! Prepared branch 16.0-ocabot-merge-pr-341-by-lmignon-bump-patch, awaiting test results.

OCA-git-bot commented 7 months ago

Congratulations, your PR was merged at 4d82d00aaec818c10dfcfe509d9640d48ebffbf2. Thanks a lot for contributing to OCA. ❤️