Skip to content

Fix several quota bugs - #65450

Merged
susnux merged 7 commits into
masterfrom
fix-quota-bugs
Dec 5, 2026
Merged

susnux merged 7 commits into
masterfrom
fix-quota-bugs

Conversation

@provokateurin

Copy link
Copy Markdown
Member

Came across these issues while looking into other quota problems last year.

@provokateurin provokateurin added this to the Nextcloud 36 milestone Oct 13, 2026
@provokateurin
provokateurin requested a review from a team as a code owner October 13, 2026 07:46
@provokateurin provokateurin added the 3. to review Waiting for reviews label Oct 13, 2026
@provokateurin
provokateurin requested review from come-nc and sorbaugh and removed request for a team October 13, 2026 07:46
@provokateurin

Copy link
Copy Markdown
Member Author

/backport to stable35

@provokateurin

Copy link
Copy Markdown
Member Author

/backport to stable34

@provokateurin

Copy link
Copy Markdown
Member Author

/backport to stable33

provokateurin and others added 7 commits December 5, 2026 20:57
Similar to #39481

Signed-off-by: provokateurin <kate@provokateurin.de>
Signed-off-by: provokateurin <kate@provokateurin.de>
Signed-off-by: provokateurin <kate@provokateurin.de>
…g free space

Signed-off-by: provokateurin <kate@provokateurin.de>
When updating an existing file, we only need to check the added size against the quota.
Otherwise both the existing file size and the new file size are counted against the quota, which is incorrect and could make a valid write fail.

Signed-off-by: provokateurin <kate@provokateurin.de>
When updating an existing file, we only need to check the added size against the quota.
Otherwise both the existing file size and the new file size are counted against the quota, which is incorrect and could make a valid write fail.

Signed-off-by: provokateurin <kate@provokateurin.de>
…de collections

Restoring files from the trash bin or restoring file versions moves
them into a virtual "restore" collection that is not a files node.
Without the guard, resolving the quota path threw and the restore
failed with a 500 response.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux
susnux requested a review from a team as a code owner December 5, 2026 20:00
@susnux
susnux requested review from vlotysh and removed request for a team December 5, 2026 20:00
@susnux
susnux disabled auto-merge December 5, 2026 20:17
@susnux
susnux merged commit d29faf6 into master Dec 5, 2026
173 of 177 checks passed
@susnux
susnux deleted the fix-quota-bugs branch December 5, 2026 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants