Repository navigation
Only use quota stream wrapper on "files" - #16613
Conversation
Prevent using the quota stream wrapper on trashbin folders and other metadata folders
|
A new inspection was created. |
|
👍 |
|
Refer to this link for build results (access rights to CI server needed): |
|
Tested and works 👍 |
Only use quota stream wrapper on "files"
|
I'd still like to hear @icewind1991's expert opinion. @karlitschek backport to OC 8 ? |
|
backport would be good 👍 |
|
Backport PR here #16630 |
|
There is only one problem with 0B quota users. Once the file is deleted and moved to the trahsbin, the file is cleaned up immeadiately, because the trashbin deletes files from trashbin once the trashbin fills more then 50% of the quota (at 0B this isn't hard ;)). Should we remove the cleanup of the trashbin? But then it's also bad, because the trashbin is never cleaned up. maybe add a time constraint (e.g. clean all files that are longer than 30 days in trash)? @schiesbn @PVince81 Opinion on this? Should I open a new ticket? |
|
This is by design. |
|
The best part would be if we had trashbin and versions have their own storages, as described here: #11963 |

Prevent using the quota stream wrapper on trashbin folders and other
metadata folders
Fixes #16187
Please review @icewind1991 @schiesbn @nickvergessen
Note: this fix is a bit ugly because it assumes that we only ever wrap the HomeStorage with the Quota storage wrapper. External storage is never wrapped with the quota storage wrapper, so this will work.
If you guys have better ideas, let me know.