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

Inconsistent results for user quota when using default_quota #200

Open
pmarini-nc opened this issue Jan 4, 2024 · 0 comments
Open

Inconsistent results for user quota when using default_quota #200

pmarini-nc opened this issue Jan 4, 2024 · 0 comments

Comments

@pmarini-nc
Copy link
Contributor

pmarini-nc commented Jan 4, 2024

Steps to reproduce

  1. Give a value to default_quota in the server, ex "1 GB"
  2. Have user user1 assigned the value of default_quota. Verify it too by checking user1 settings page.
  3. Run:

Case 1:

# occ usage-report:generate --output=json user1 | jq .quota`
0

Case 2:

# occ usage-report:generate --output=json | grep user1 | jq .quota`
"1 GB"

Expected behaviour

The field quota should be always an integer number and consistent.

Actual behaviour

The field quota is wrong (case 1) and a string (case 2). Manually assigning the user the same value as default_quota fixes the issue.

Server configuration

Nextcloud version: 27.1.5

user_usage_report: 1.11.1

Where did you install Nextcloud from: normal installer

List of activated apps:

Nextcloud configuration:

Client configuration

Logs

Nextcloud log (data/nextcloud.log)

Browser log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant