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

fix: Create empty file instead of file with a space #49936

Merged
merged 1 commit into from
Dec 20, 2024

Conversation

juliusknorr
Copy link
Member

@juliusknorr juliusknorr commented Dec 20, 2024

This was added in c22776f but writing empty files was properly fixed in #14210

It turns out that MS Office Online server requires new files that are opened to be totally empty in some cases.

Ref nextcloud/officeonline#593 which made it work with 1 byte files but this only works for word/excel, not powerpoint.

This PR is against 30 as with 31 this code is no longer in place.

Signed-off-by: Julius Knorr <jus@bitgrid.net>
@juliusknorr juliusknorr added bug 3. to review Waiting for reviews labels Dec 20, 2024
@juliusknorr
Copy link
Member Author

/backport to stable29

@juliusknorr
Copy link
Member Author

/backport to stable28

@juliusknorr juliusknorr requested review from icewind1991, blizzz, elzody, a team, provokateurin and sorbaugh and removed request for a team December 20, 2024 11:36
@juliusknorr juliusknorr added this to the Nextcloud 30.0.5 milestone Dec 20, 2024
@blizzz blizzz merged commit 4f4b02c into stable30 Dec 20, 2024
113 checks passed
@blizzz blizzz deleted the fix/empty-file-0byte-stable30 branch December 20, 2024 12:11
@blizzz blizzz mentioned this pull request Jan 8, 2025
17 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants