nextcloud / nextcloud/ios

iOS App shows only a few files in large folder / “Uploaded media” stays empty, server log shows pack() expects at least 1 argument, 0 given

Open
#3,703 8 comments 0 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

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 large photo folder in Nextcloud (/Fotos with ~17,000 files, JPG/PNG).

Upload new photos from iOS.

Open the Nextcloud iOS app (version 7.1.2) and go to:

Menu → Uploaded media → remains empty

Browse → Fotos folder → only today’s 4 files are shown, although thousands exist.

On the server side, Nextcloud logs the following error when the iOS app requests the folder listing:
pack() expects at least 1 argument, 0 given

Expected behaviour:

iOS app should list all files in the folder /Fotos and display “Uploaded media” content.

No pack() error on the server.

Actual behaviour

Only 4 newest images are shown in the app.

“Uploaded media” view stays empty.

Server log shows SabreDAV error:
pack() expects at least 1 argument, 0 given /app/www/public/3rdparty/sabre/dav/lib/DAV/PropFind.php line 95

Logs
If applicable, you can post the iOS app or server logs (removing any sensitive information).
Reasoning or why should it be changed/implemented?
Environment data

Nextcloud Server: 31.0.8.1 (Docker)

Nextcloud iOS App: 7.1.2 (iOS 17.x)

User storage: ~17k photo files in one folder (/Fotos)

Web server: Apache, nginx

Database:

PHP version:

Nextcloud version: see Nextcloud admin page

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 large-folder listing and empty “Uploaded media” behavior with the stated Nextcloud Server and iOS app versions. Inspect the server error at 3rdparty/sabre/dav/lib/DAV/PropFind.php line 95 alongside the iOS folder-listing flow; done means all files and uploaded media appear without the pack() error.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, swift
Domain
backend, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.