Skip to content

Wrong warning "Insufficient storage space available" for accounts without quota #1056

@kesselb

Description

@kesselb

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Steps to reproduce

  1. Have a user with unlimited quota
  2. Visita user migration page
  3. See warning

Expected behaviour

No warning ;)

Actual behaviour

Warning

Insufficient storage space available, please free up 4.28515625 MiB or more to be able to export your data without running out of space

Cause

$userFolder = $this->rootFolder->getUserFolder($user->getUID());
$freeSpace = ceil($userFolder->getFreeSpace() / 1024);

getFreeSpace might return -1, -2 or -3 (see https://github.com/nextcloud/server/blob/35606bc6bd6d4fb79aab42088ad8ecdb7f0e1402/lib/public/Files/FileInfo.php#L29-L43)

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending approval or rejectionbugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions