fix: file size in cache is set back to zero if empty content is writt…#39016
fix: file size in cache is set back to zero if empty content is writt…#39016DeepDiver1975 wants to merge 2 commits intomasterfrom
Conversation
|
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
7634ce8 to
53196ce
Compare
|
https://drone.owncloud.com/owncloud/core/31293/2/7 |
53196ce to
aeca425
Compare
|
Only the PHP unit tests on Oracle failed: The first fail might be real? But then it complains many times about I restarted CI so we can see if the fail is "variable". |
|
@DeepDiver1975 I used current master and tried overwriting a file with an empty file, then downloading it. The download comes back empty, which is correct. So this problem does not seem to have an externally-observable bad behavior. Is that correct? This just fixes an internal cache problem? |
This is a pure PHP API fix from my understanding - it was discovered while working on some other app which used these functions that way .... |
|
💥 Acceptance tests pipeline apiFederationToRoot1-git-mariadb10.2-php7.4 failed. The build has been cancelled. |
aeca425 to
99801e4
Compare
|
Kudos, SonarCloud Quality Gate passed! |
|
https://drone.owncloud.com/owncloud/core/31515/36/9 |
🤷 |
|
looks like I need to fire up oracle locally one more time .... |
99801e4 to
5fb41b0
Compare
|
💥 Acceptance tests pipeline webUISharingPublic1-chrome-mariadb10.2-php7.4 failed. The build has been cancelled. |
5d74544 to
d293089
Compare
|
Kudos, SonarCloud Quality Gate passed! |
|
@DeepDiver1975 merga master or rebase to kick ci again? |
d293089 to
a269c4a
Compare
|
🙈 |










…en to a non-empty file
Description
When writing zero length content to a non-empty file the file size in the file cache was not updated.
How Has This Been Tested?
see provided test
Types of changes
Checklist: