Uh oh!
There was an error while loading. Please reload this page.
Bugfix for issue 10862: Trash-bin ignores trashbin_retention_obligation - #13844
Bugfix for issue 10862: Trash-bin ignores trashbin_retention_obligation#13844MorrisJobke merged 1 commit into
Conversation
…ge (doesn't count towards quota) Signed-off-by: Felix Nieuwenhuizen <felix@tdlrali.com>
rullzer
commented
Jan 30, 2019
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. |
rullzer
commented
Jan 30, 2019
And thanks a lot for your pr @felixn! welcome! |
icewind1991
commented
Feb 27, 2019
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 |
MorrisJobke
commented
Feb 27, 2019
/backport to stable15 |
MorrisJobke
commented
Feb 27, 2019
/backport to stable14 |
backport to stable14 in #14415 |
backport to stable15 in #14414 |
icewind1991
commented
Feb 27, 2019
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