Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(settings): Correctly parse and display default quota #50187

Merged
merged 2 commits into from
Jan 16, 2025

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Jan 14, 2025

In the account management settings (default settings) the quota was parsed not consistently with how we do it everywhere else. Meaning 1 KB should be 1024 bytes not 1000 bytes.

Also this fixes an issue where searching "1KB" does not yield any output because of the space in the parsed value "1 KB".

@susnux susnux added this to the Nextcloud 31 milestone Jan 14, 2025
@susnux susnux requested review from Pytal, a team, nfebe and sorbaugh and removed request for a team January 14, 2025 21:43
@susnux
Copy link
Contributor Author

susnux commented Jan 14, 2025

/backport to stable30

@skjnldsv skjnldsv mentioned this pull request Jan 16, 2025
In the account management settings (default settings) the quota was
parsed not consistently with how we do it everywhere else.
Meaning `1 KB` should be 1024 bytes not 1000 bytes.

Also this fixes an issue where searching "1KB" does not yield any output
because of the space in the parsed value "1 KB".

Signed-off-by: Ferdinand Thiessen <[email protected]>
Signed-off-by: Ferdinand Thiessen <[email protected]>
@susnux susnux force-pushed the fix/account-mgmnt-settings branch from 5f98df8 to 26fd7a0 Compare January 16, 2025 19:34
@susnux susnux merged commit 388118a into master Jan 16, 2025
120 checks passed
@susnux susnux deleted the fix/account-mgmnt-settings branch January 16, 2025 20:29
@Altahrim Altahrim mentioned this pull request Jan 21, 2025
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.

[Bug]: GB being overwritten with GiB in the Default quota setting
3 participants