Skip to content

[stable32] fix(quota): Calculate used quota for foreign users the correct way - #66654

Open
backportbot[bot] wants to merge 1 commit into
stable32from
backport/66334/stable32
Open

backportbot[bot] wants to merge 1 commit into
stable32from
backport/66334/stable32

Conversation

@backportbot

@backportbot backportbot Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Backport of #66334

@come-nc
come-nc force-pushed the backport/66334/stable32 branch from ce5196e to 5ee7660 Compare November 16, 2026 12:49
@github-actions github-actions Bot changed the title [stable32] [stable33] fix(quota): Calculate used quota for foreign users the correct way [stable32] fix(quota): Calculate used quota for foreign users the correct way Nov 16, 2026
When the `quota_include_external_storage` setting is enabled and a shared folder is mounted, the free space is being calculcated the wrong way.

Example:
- user1 has a quota of 10GB with 9GB used
- user2 has a quota of 5GB and shares a folder with user1
- user1 tries to write a file to the shared folder
- Upload fails due to `quota-available-bytes: 0` (the usage of 9GB being compared against the 5GB of user2)

The issue is fixed by checking the usage of the folder's owner instead of the session user's. The same issue also applies to the admin overview, where the admin's own quota is being shown for users whose files folder is an external storage mounted at `/`.

Assisted-by: ClaudeCode:claude-opus-5.5
Signed-off-by: David Dreschner <david.dreschner@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
@come-nc
come-nc force-pushed the backport/66334/stable32 branch from 5ee7660 to 30ac4a8 Compare November 16, 2026 13:03
@DerDreschner
DerDreschner marked this pull request as ready for review November 19, 2026 09:44
@DerDreschner
DerDreschner requested a review from a team as a code owner November 19, 2026 09:44
@DerDreschner
DerDreschner requested review from CarlSchwan and icewind1991 and removed request for a team November 19, 2026 09:44
@DerDreschner

Copy link
Copy Markdown
Member

The object storage azure failures are fixed by nextcloud/3rdparty#2729

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants