nextcloud / nextcloud/ios

Preview of Null file is requested when "Transfer" tab is open

Open
#3,249 1 comment 1 reaction 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

When uploading my photo library I discovered that there are many 404s in my access log. These request a preview of an empty file id. This only occurs when I have the "Transfer" tab is open.

Steps to reproduce
  1. Upload files via Automatic Photo Uploading
  2. Open "Transfer" tab

The following requests appear en-masse in my access log (dozens per second after uploading a file) wh

2024-12-22 10:43:36	Error	2003:e5:9f13:c800:502e:xxxx	404	GET /index.php/core/preview?fileId=&x=1024&y=1024&a=1&mode=cover&forceIcon=0&mimeFallback=0 HTTP/1.0

Image

the iOS log says the following about this:

2024-12-22 10:51:22 [INFO] Upload complete https://nextcloudinstance.dummy.de/remote.php/dav/files/Simon/Camera Uploads/2016-08-14 18-11-45_2235.mov, result: success(19183362 bytes)
2024-12-22 10:51:23 Network request started: GET https://nextcloudinstance.dummy.de/index.php/core/preview?fileId=&x=1024&y=1024&a=1&mode=cover&forceIcon=0&mimeFallback=0
2024-12-22 10:51:23 Network request headers: ["Content-Type": "application/x-www-form-urlencoded", "OCS-APIRequest": "true", "User-Agent": "Mozilla/5.0 (iOS) Nextcloud-iOS/6.2.1", "Accept": "application/json", "Authorization": "Basic TOKENRETRACTED"]
2024-12-22 10:51:23 Network request body: None
2024-12-22 10:51:23 Network request started: GET https://nextcloudinstance.dummy.de/index.php/core/preview?fileId=&x=1024&y=1024&a=1&mode=cover&forceIcon=0&mimeFallback=0
2024-12-22 10:51:23 Network request headers: ["Content-Type": "application/x-www-form-urlencoded", "OCS-APIRequest": "true", "User-Agent": "Mozilla/5.0 (iOS) Nextcloud-iOS/6.2.1", "Accept": "application/json", "Authorization": "Basic TOKENRETRACTED"]
2024-12-22 10:51:23 Network request body: None
2024-12-22 10:51:23 Network request started: GET https://nextcloudinstance.dummy.de/index.php/core/preview?fileId=&x=1024&y=1024&a=1&mode=cover&forceIcon=0&mimeFallback=0
2024-12-22 10:51:23 Network request headers: ["Content-Type": "application/x-www-form-urlencoded", "OCS-APIRequest": "true", "User-Agent": "Mozilla/5.0 (iOS) Nextcloud-iOS/6.2.1", "Accept": "application/json", "Authorization": "Basic TOKENRETRACTED"]
2024-12-22 10:51:23 Network request body: None
2024-12-22 10:51:23 Network request started: GET https://nextcloudinstance.dummy.de/index.php/core/preview?fileId=&x=1024&y=1024&a=1&mode=cover&forceIcon=0&mimeFallback=0
2024-12-22 10:51:23 Network request headers: ["Content-Type": "application/x-www-form-urlencoded", "OCS-APIRequest": "true", "User-Agent": "Mozilla/5.0 (iOS) Nextcloud-iOS/6.2.1", "Authorization": "Basic TOKENRETRACTED", "Accept": "application/json"]
2024-12-22 10:51:23 Network request body: None
Environment data

iOS version: 18

Nextcloud iOS app version: 6.2.1.0

Server operating system:

Web server: Apache, nginx

PHP version: 8.3

Nextcloud version: 30.0.4

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 issue with Automatic Photo Uploading while the Transfer tab is open, and inspect the preview requests shown in the report. Trace why requests are sent with an empty fileId; done means uploads no longer trigger repeated preview requests for an empty file.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.