Skip to content

Conversation

@juliusknorr
Copy link
Member

free_space may return an integer value instead of a float if the user has their quota set to 0.

Without this change users without quota were still able to touch empty files and create directories.

On master/stable25 this change was already introduced by https://github.com/nextcloud/server/pull/33600/files#diff-b89bc6bd7d5336d68032bb5a5c1f309df16f27173f9f58d9f338ec495d3f951bL230

@juliusknorr juliusknorr changed the title Properly compare quota against both float/int values [stable24] Properly compare quota against both float/int values Nov 18, 2022
@juliusknorr juliusknorr added bug 3. to review Waiting for reviews labels Nov 18, 2022
@juliusknorr juliusknorr added this to the Nextcloud 24.0.8 milestone Nov 18, 2022
@blizzz blizzz mentioned this pull request Nov 21, 2022
9 tasks
Copy link
Contributor

@szaimen szaimen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but didnt test

@szaimen szaimen requested review from a team and blizzz and removed request for a team November 21, 2022 15:33
@szaimen szaimen merged commit c56fcca into stable24 Nov 21, 2022
@szaimen szaimen deleted the bugfix/noid/quota-zero branch November 21, 2022 17:39
@juliusknorr
Copy link
Member Author

/backport to stable23

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

Labels

3. to review Waiting for reviews bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants