Skip to content

Inconsistent results for user quota when using default_quota #200

@pmarini-nc

Description

@pmarini-nc

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions