nextcloud / nextcloud/ios

Photos tab empty after iOS app update – SEARCH WebDAV request cancelled (NSURLErrorDomain -999)

Open
#3,888 0 comments 2 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

Description:
After updating the Nextcloud iOS app to version 7.2.x, the Photos tab is completely empty.
Before the update, all images loaded correctly.

The logs show repeated errors indicating that the WebDAV SEARCH request is cancelled:

[ERROR] Media search failed: cancelled
Alamofire.AFError.sessionTaskFailed(error: Error Domain=NSURLErrorDomain Code=-999 "cancelled")

The affected request is always:

SEARCH https:///remote.php/dav

As a result, the Photos tab does not load thumbnails or lists.

App version:
• Nextcloud iOS 7.2.1 → 7.2.2 (issue occurs in both)

Server version:
• Nextcloud (user does not have admin access; no server logs available)

Steps to reproduce:
1. Open Nextcloud iOS app
2. Navigate to Photos
3. App sends SEARCH request to /remote.php/dav
4. Request fails immediately with error NSURLErrorDomain -999
5. Photos tab remains empty

Expected behavior:
Photos tab should display all images as in previous versions.

Actual behavior:
SEARCH request fails instantly with “cancelled” error and Photos tab stays empty.

Additional technical info / logs:

2025-11-23 10:15:12.345 Nextcloud[12345:678901] [ERROR] Media search failed: cancelled
Alamofire.AFError.sessionTaskFailed(error: Error Domain=NSURLErrorDomain Code=-999 "cancelled")
2025-11-23 10:15:12.346 Nextcloud[12345:678901] SEARCH https:///remote.php/dav
2025-11-23 10:15:12.347 Nextcloud[12345:678901] NSURLErrorDomain Code=-999 "cancelled"

Notes / Observations:
• The issue started after updating the app.
• Before the update, Photos loaded correctly.
• User does not have admin access on server.
• Problem seems related to iOS app cancelling the WebDAV SEARCH request.

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 at the Photos tab and trace the media search entry point that sends the WebDAV SEARCH request to /remote.php/dav. Reproduce on iOS 7.2.1 or 7.2.2, inspect the cancellation path associated with NSURLErrorDomain -999, and verify that Photos loads image lists and thumbnails without the request being cancelled.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, swift
Domain
mobile, networking
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.