Skip to content

Conversation

@leftybournes
Copy link
Contributor

@leftybournes leftybournes commented May 12, 2025

Summary

Check if a user has enough space to restore a file before doing it.

Checklist

@leftybournes leftybournes requested review from a team and skjnldsv as code owners May 12, 2025 08:04
@leftybournes leftybournes requested review from nfebe and susnux and removed request for a team May 12, 2025 08:04
Copy link
Contributor

@susnux susnux left a 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.

@leftybournes
Copy link
Contributor Author

Thanks for pointing that out. I'll look into doing it that way instead.

@leftybournes leftybournes force-pushed the leftybournes/fix/files_trashbin_dont_restore_full branch from 3cc6de7 to 51ec256 Compare May 13, 2025 09:04
@leftybournes leftybournes requested a review from a team as a code owner May 13, 2025 09:04
@leftybournes leftybournes requested review from ArtificialOwl and artonge and removed request for a team May 13, 2025 09:04
@leftybournes leftybournes force-pushed the leftybournes/fix/files_trashbin_dont_restore_full branch 3 times, most recently from bad3873 to 417576a Compare May 14, 2025 06:37
@leftybournes leftybournes force-pushed the leftybournes/fix/files_trashbin_dont_restore_full branch from 417576a to 30b49cd Compare May 15, 2025 07:13
@leftybournes leftybournes requested a review from a team as a code owner May 15, 2025 07:13
@leftybournes leftybournes force-pushed the leftybournes/fix/files_trashbin_dont_restore_full branch from 30b49cd to bba3e3c Compare May 19, 2025 14:25
Copy link
Member

@provokateurin provokateurin left a 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

@leftybournes leftybournes force-pushed the leftybournes/fix/files_trashbin_dont_restore_full branch from 94da0a3 to 3eb1214 Compare May 20, 2025 06:11
Copy link
Member

@provokateurin provokateurin left a 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!

@leftybournes leftybournes force-pushed the leftybournes/fix/files_trashbin_dont_restore_full branch from 3eb1214 to 9820280 Compare May 20, 2025 07:02
@sorbaugh sorbaugh requested a review from susnux May 20, 2025 07:34
Signed-off-by: Kent Delante <kent.delante@proton.me>
@leftybournes leftybournes force-pushed the leftybournes/fix/files_trashbin_dont_restore_full branch from 9820280 to 705aee5 Compare May 20, 2025 12:53
@provokateurin provokateurin merged commit bb79523 into master May 27, 2025
211 of 221 checks passed
@provokateurin provokateurin deleted the leftybournes/fix/files_trashbin_dont_restore_full branch May 27, 2025 08:12
@leftybournes
Copy link
Contributor Author

/backport to stable31

@leftybournes
Copy link
Contributor Author

/backport to stable30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: File should not be recovered if no quota is left.

5 participants