nextcloud / nextcloud/server

[Bug]: Problems changing quota to 1 GB

Open
#56,757 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage 32-feedback bug feature: users and groups
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

⚠️ This issue respects the following points: ⚠️
Bug description

When you try to reduce the quota of an account to 1 GB there's a glitch in the GUI that prevents this.
When you start editing the account the value shown in the quota-field is not the current quota of this account but always 1 GB. When you save the changes, the old quota above 1 GB is not changed because if you seleted 1 GB from the drop down or entered 1 GB manually it there is no change to the value that was in this field before.
When you want to reduce the quota of an account wit 5, 10 or more GB to 1 GB you have to first set it to e.g. 5 GB, save the change, do not (!) reload the page, edit the account again and the current 5 GB are shown. If you change the quota to another value than 1 GB, save the changes and reload the page, the error occurs again and there ist 1 GB displayed no matter which quota is assigned to the accunt.

Steps to reproduce
  1. Find account with more than 1 GB Quota and less than 1 GB current files
  2. Edit this account, there's 1 GB dislayed, you may change it in any way to "1 GB" and save it
  3. The account still has the quota it had before editing.
Expected behavior

While editing the account there Quota-field should of course be filled with the current Quota.

Nextcloud Server version

32

Operating system

Other

PHP engine version

PHP 8.2

Web server

Apache (supported)

Database engine version

MariaDB

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

Upgraded to a MAJOR version (ex. 31 to 32)

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?
  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other
Configuration report

List of activated Apps

Nextcloud Signing status

Nextcloud Logs

Additional info

Error also occurs in Release 31 and both on LDAP and local accounts.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the quota edit flow described in the issue for an account above 1 GB, then trace the account-editing GUI and its quota handling. Done means the edit field shows the account's current quota and saving a change to 1 GB updates the account; add a regression test if the relevant test location is found.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.