nextcloud / nextcloud/user_migration
Wrong warning "Insufficient storage space available" for accounts without quota
Nobody has claimed this yet.
- 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
- Have a user with unlimited quota
- Visita user migration page
- 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
getFreeSpace might return -1, -2 or -3 (see https://github.com/nextcloud/server/blob/35606bc6bd6d4fb79aab42088ad8ecdb7f0e1402/lib/public/Files/FileInfo.php#L29-L43)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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