-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
fix(files_trashbin): check if there is enough space before restoring #52752
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(files_trashbin): check if there is enough space before restoring #52752
Conversation
susnux
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure as the "free space" is cached and could be larger or smaller.
So worst case this is cancelled even if there is enough space, just because its cached with smaller free space.
Maybe instead do that on the trashbin DAV plugin and check if there is enough free space, otherwise fail and report the missing space (http 507).
So we can catch and handle in frontend, but backend has a chance to properly check this.
|
Thanks for pointing that out. I'll look into doing it that way instead. |
3cc6de7 to
51ec256
Compare
bad3873 to
417576a
Compare
417576a to
30b49cd
Compare
30b49cd to
bba3e3c
Compare
provokateurin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just some minor ideas for improvement
94da0a3 to
3eb1214
Compare
provokateurin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did not test, but looks nice!
3eb1214 to
9820280
Compare
Signed-off-by: Kent Delante <kent.delante@proton.me>
9820280 to
705aee5
Compare
|
/backport to stable31 |
|
/backport to stable30 |
Summary
Check if a user has enough space to restore a file before doing it.
Checklist