Skip to content

[stable35] Fix several quota bugs - #67718

Open
backportbot[bot] wants to merge 7 commits into
stable35from
backport/65450/stable35
Open

backportbot[bot] wants to merge 7 commits into
stable35from
backport/65450/stable35

Conversation

@backportbot

@backportbot backportbot Bot commented Dec 5, 2026

Copy link
Copy Markdown

Backport of PR #65450

provokateurin and others added 7 commits December 5, 2026 20:17
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>
@backportbot
backportbot Bot requested review from a team as code owners December 5, 2026 20:17
@backportbot
backportbot Bot requested review from come-nc, icewind1991, pabzm, provokateurin, susnux and vlotysh and removed request for a team December 5, 2026 20:18
@backportbot backportbot Bot added bug 3. to review Waiting for reviews AI assisted labels Dec 5, 2026
@backportbot backportbot Bot added this to the Nextcloud 35.0.4 milestone Dec 5, 2026

This branch has not been deployed

No deployments
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.

2 participants