-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Bugfix for issue 10862: Trash-bin ignores trashbin_retention_obligation #13844
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
Bugfix for issue 10862: Trash-bin ignores trashbin_retention_obligation #13844
Conversation
…ge (doesn't count towards quota) Signed-off-by: Felix Nieuwenhuizen <[email protected]>
|
I'm not a big fan of reverting back to the view. The node API is cleaner IMO. But if there is no other way. @icewind1991 I leave this to your expertise. |
|
And thanks a lot for your pr @felixn! welcome! |
|
I think this is fine to backport to stable15, then for 16 we can extend the node api to provide this info |
|
Thanks for your first pull request and welcome to the community! Feel free to keep them coming! If you are looking for issues to tackle then have a look at this selection: https://github.com/nextcloud/server/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22 |
|
/backport to stable15 |
|
/backport to stable14 |
|
backport to stable14 in #14415 |
|
backport to stable15 in #14414 |
|
node api extension: #14412 |
Fix for #10862
The method used by Trashbin.php to calculate used space included external storage, while the quota doesn't include external storage. This led to
$freespace always being way too small (or negative), leading trashbin to purge all deleted files.The calculation for used space, free space and quota was replaced by the version used by the Versions app:
server/apps/files_versions/lib/Storage.php
Lines 756 to 758 in 4adac44
@GAS85
@MorrisJobke
@danielkesselberg