nextcloud / nextcloud/ios

iOS Files App/extension shows "Content unavailable" when you have too many items in a folder

Open
#1,581 10 comments 10 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Swift
Stars
2.5k
Forks
1k
Avg merge
2d 18h
Merged PRs (30d)
13

Description

Steps to reproduce
  1. Extract the attached content, Files App Testdata.zip in your Nextcloud folder
  2. Go to your iPad/iPhone, open Apple Files App
  3. You might be able to open Nextcloud -> Files App Testdata -> 500 which contains 500 PNG image files, 21-04-28 00-50-36 1494
  4. But you will probably fail to open Nextcloud -> Files App Testdata -> 700, 21-04-28 00-49-49 1493
Expected behaviour

You should be able to access any folder from your Nextcloud instance.

Actual behaviour

When a folder contains too many files, Files App is unable to display any content. In my test case I was never able to open a folder with 700 or more files, the folder with 600 images sometimes works (but often fails, too).

Note

I did the same test with Microsoft OneDrive and DropBox and had no problems. Seems like OneDrive had a similar problem before (https://www.reddit.com/r/onedrive/comments/hr08ld/ios_files_app_content_unavailable_if_more_than_50/g0b7xm4/) but they fixed it. So it should work in Nextcloud, too.

Environment data

iOS version: iOS 14.4.2 & 14.5

Nextcloud iOS app version: 3.4.2.0

Nextcloud version: 21.0.1

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

Start by reproducing the problem in the Apple Files App with the attached Files App Testdata.zip, comparing the 500-file and 700-file folders. Inspect the Nextcloud iOS app's Files App extension entry point and its handling of large folder listings; done means folders with 700 or more files can be opened and displayed reliably.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, swift
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.