Skip to content

[stable24] Properly compare quota against both float/int values - #35250

Merged
szaimen merged 1 commit into
stable24from
bugfix/noid/quota-zero
Nov 21, 2022
Merged

[stable24] Properly compare quota against both float/int values#35250
szaimen merged 1 commit into
stable24from
bugfix/noid/quota-zero

Conversation

@juliusknorr

Copy link
Copy Markdown
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

Signed-off-by: Julius Härtl <jus@bitgrid.net>
@juliusknorrjuliusknorr changed the title Properly compare quota against both float/int values[stable24] Properly compare quota against both float/int valuesNov 18, 2022
@juliusknorrjuliusknorr added bug 3. to review Waiting for reviews labels Nov 18, 2022
@juliusknorrjuliusknorr added this to the Nextcloud 24.0.8 milestone Nov 18, 2022
@blizzzblizzz mentioned this pull request Nov 21, 2022
9 tasks

@szaimenszaimen left a comment

Copy link
Copy Markdown
Contributor

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 teamNovember 21, 2022 15:33
@szaimen
szaimen merged commit c56fcca into stable24Nov 21, 2022
@szaimen
szaimen deleted the bugfix/noid/quota-zero branch November 21, 2022 17:39
@juliusknorr

Copy link
Copy Markdown
MemberAuthor

/backport to stable23

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

Labels

3. to reviewWaiting for reviewsbug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@juliusknorr@icewind1991@szaimen