-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Cannot set user quota with uneven values using locales that use a comma as decimal separator #18468
Comments
Confirmed. There is a workaround for value below 1 GB though: instead of 0.5 GB use 500 MB. Did you try this?
|
This workaround does set the quota correct to |
Hello, I confirm I reproduce also on French local also > same issue. Seemed to work on NC14 because an account created 1 year ago with 1,5 GB is still working well. But if I try to modify the quota now with NC17 , I cannot set back 1,5 GB anymore... |
This comment was marked as outdated.
This comment was marked as outdated.
I can still reproduce this issue with a Nextcloud 20.0.9. |
I can reproduce it as well. Will have a look. |
Three things happen:
Server and javascript code should handle both decimal seperators or it should be clear, that only frontend numbers use the locale dependend decimal seperator. @skjnldsv Any preference? |
The more versatile the better |
#24002 is a duplicate of this issue and it still exists with 22.1.1. Workaround which worked for me: Set local in nextcloud user settings to US and then enter e.g. "1.5 TB" worked. |
Somehow didn't work, but this works instead: occ user:setting USERNAME files quota 1.5GB |
This is still a valid bug in NC 24.0.5 |
If you point me to the PHP file, that computers the value, I could create a pr |
Hi, please update to 24.0.8 or better 25.0.2 and report back if it fixes the issue. Thank you! |
Nextcloud 24.0.9 set via UI:
{"ocs":{"meta":{"status":"ok","statuscode":200,"message":"OK"},"data":[]}} After page renewal Limit was back to the Check via CLI: occ user:setting USER
...
- files:
- quota: 1 GB
... Quota was not set. Also I see that yes - you can set via UI some dotted values, but only the integer part will be accepted. E.g. for |
This comment was marked as resolved.
This comment was marked as resolved.
the problem got worse in 27.0.2: Now with german Locale, you still cannot set it to broken values, but there is another issue now: All users seem to have some extra fraction: Users that had 1GB Quota now all have 1.1 GB Quota, users that had 10GB now have 10.7GB. This is the same with english Locale. there the fractioning setting works kind of, although there is also added a few fractions each time, you change it |
…runcated in locales other than english fixes #18468 Signed-off-by: Marcel Klehr <[email protected]>
…runcated in locales other than english fixes #18468 Signed-off-by: Marcel Klehr <[email protected]>
…runcated in locales other than english fixes #18468 Signed-off-by: Marcel Klehr <[email protected]>
…runcated in locales other than english fixes #18468 Signed-off-by: Marcel Klehr <[email protected]>
…runcated in locales other than english fixes #18468
…runcated in locales other than english fixes #18468 Signed-off-by: Marcel Klehr <[email protected]>
…runcated in locales other than english fixes #18468 Signed-off-by: Marcel Klehr <[email protected]>
…runcated in locales other than english fixes #18468 Signed-off-by: Marcel Klehr <[email protected]>
…runcated in locales other than english fixes nextcloud#18468 Signed-off-by: Marcel Klehr <[email protected]>
…runcated in locales other than english fixes #18468 Signed-off-by: Marcel Klehr <[email protected]>
…runcated in locales other than english fixes #18468 Signed-off-by: Marcel Klehr <[email protected]>
…runcated in locales other than english fixes #18468 Signed-off-by: Marcel Klehr <[email protected]>
…runcated in locales other than english fixes #18468 Signed-off-by: Marcel Klehr <[email protected]> [skip ci]
…runcated in locales other than english fixes #18468 Signed-off-by: Marcel Klehr <[email protected]>
It is not possible to set a decimal user quota with a German locale. The frontend does change the wanted value of e.g "1.5 TB" in the API request to "1,5 TB" which is not correctly interpreted by the backend but still accepted and returns a 200 OK message.
If you try to set "1,5 TB" then is the API request not even sent.
There is no problem if the English locale is activated for the user and it is tried to set "1.5 TB".
Steps to reproduce
Expected behaviour
User gets a quota of 1.5 TB quota.
Actual behaviour
Frontend shows "Unlimited" quota and after reload of the page "1 TB".
Server configuration
Operating system: Ubuntu Server 18.04
Web server: Nginx
Database: MariaDB
PHP version: PHP 7.3.11
Nextcloud version: 17.0.1
Updated from an older Nextcloud/ownCloud or fresh install: upgraded from Nextcloud version 16
Where did you install Nextcloud from: Public Nextcloud Docker Image
Signing status:
Signing status
No errors have been found.Are you using external storage, if yes which one: No
Are you using encryption: No
Are you using an external user-backend, if yes which one: No
Client configuration
Browser: Chromium and Firefox
Operating system: Fedora
Logs
Web server error log
Web server error log
No errorsNextcloud log (data/nextcloud.log)
Nextcloud log
No errorsBrowser log
Browser log
Client Request:
Path:
example.org/ocs/v2.php/cloud/users/Admin
Payload:
{key: "quota", value: "1,5 TB"}
Answer:
The text was updated successfully, but these errors were encountered: