Skip to content

Fix quota handling for unlimited object storage - #64194

Open
brgsousa wants to merge 1 commit into
nextcloud:stable34from
brgsousa:fix/quota-space-unlimited
Open

Fix quota handling for unlimited object storage#64194
brgsousa wants to merge 1 commit into
nextcloud:stable34from
brgsousa:fix/quota-space-unlimited

Conversation

@brgsousa

Copy link
Copy Markdown

Problem

When the wrapped storage reports SPACE_UNLIMITED, the quota wrapper can receive a negative free-space value. A zero-byte temporary upload target may then be rejected as insufficient space.

This results in a WebDAV upload failure reported as HTTP 413 / EntityTooLarge.

Change

Treat negative free-space values as unlimited space before comparing the requested write size.

Validation

  • php -l lib/private/Files/Storage/Wrapper/Quota.php

Environment

  • Nextcloud 34
  • Primary object storage: S3-compatible Ceph/RGW
  • Upload path: WebDAV chunked upload

@brgsousa
brgsousa requested a review from a team as a code owner September 10, 2026 16:38
@brgsousa
brgsousa requested review from come-nc, icewind1991, leftybournes and provokateurin and removed request for a team September 10, 2026 16:38
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.

1 participant