Skip to content
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

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

Merged
merged 1 commit into from
Feb 23, 2024

Conversation

lmignon
Copy link
Sponsor Contributor

@lmignon lmignon commented Feb 21, 2024

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.

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 lmignon force-pushed the 16.0-fix-fs_file-empty-content branch from 07138c9 to 939119a Compare February 21, 2024 12:15
@lmignon
Copy link
Sponsor Contributor Author

lmignon commented Feb 23, 2024

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

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 OCA-git-bot merged commit a238204 into OCA:16.0 Feb 23, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

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

@lmignon lmignon deleted the 16.0-fix-fs_file-empty-content branch February 27, 2024 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants