Skip to content

[Bug]: UI error re locale use on numbers when assigning quota values #59548

@clinthyde58

Description

@clinthyde58

⚠️ This issue respects the following points: ⚠️

Bug description

I have tried this more than once, using latest (32?) version.
Create a new user. Go to set quota, enter value "1000GB". Press return.
See that the value is "1,000 GB" (this is critical). It looks ok. I want it to mean 1 TB for this user.
There is a locale error here in how this number is going to get interpreted, of US vs European numbers and use of commas vs periods. Upon hitting Enter, NC has take the value I typed and interpreted it into something looks ok as a US number, but then it decides, because of the US vs European locale difference, that I entered 1.000 GB, and it give me a quota of 1 GB. I expect that many variations of this would produce the same failure.

Steps to reproduce

  1. create new user
  2. go to give them a custom quota value of 1000TB
  3. see that that 1000 has been changed to 1,000 -- that means something different between US and Europe. To me in the US it means one thousand, in Europe it means one exactly
  4. try uploading 2 GB of files. This will error out from exceeding quota, because the number I entered got modified by the software to a very different number, because there's a locale failure here somewhere.

Expected behavior

If I enter 1000, I should get 1000, not "1,000"

Nextcloud Server version

32

Operating system

Debian/Ubuntu

PHP engine version

None

Web server

None

Database engine version

None

Is this bug present after an update or on a fresh install?

Fresh Nextcloud Server install

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

the config is the default that happens when you install Ubuntu. I haven't made any changes to that. whatever that install does is what I have in place. I don't know what web-server, database, etc. Whatever the defaults are are what I have.

List of activated Apps

unknown. I've just done a full reinstall so I can fix the regrettably bizarre business about the real size of the default LVM leaving a huge amount of disk as unallocated free space

Nextcloud Signing status

unknown. I've just done a full reinstall so I can fix the regrettably bizarre business about the real size of the default LVM leaving a huge amount of disk as unallocated free space

Nextcloud Logs

unknown. I've just done a full reinstall so I can fix the regrettably bizarre business about the real size of the default LVM leaving a huge amount of disk as unallocated free space

Additional info

I've just done a full reinstall so I can fix the regrettably bizarre business about the real size of the default LVM leaving a huge amount of disk as unallocated free space.
Having figured out the bug, and a workaround, I will be doing that now.

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Bug.

    Projects

    Status

    To triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions