nextcloud / nextcloud/user_migration

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

Open
#1,056 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage bug
Dominant language
JavaScript
Stars
30
Forks
10
Avg merge
6h 5m
Merged PRs (30d)
12

Description

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

https://github.com/nextcloud/user_migration/blob/0e1a94834ae0436979fba0face81214f24c71985/lib/Service/UserMigrationService.php#L116-L117

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

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

Reproduce the warning on the user migration page with a user who has unlimited quota, then read lib/Service/UserMigrationService.php around lines 116-117 and the linked FileInfo.php definitions for getFreeSpace. Done means the unlimited-quota account can start an export without showing the insufficient-storage warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.