Skip to content

Infinite retry for conflicting auto-uploads #16446

@osovitskiy

Description

@osovitskiy

⚠️ Before posting ⚠️

  • This is a bug, not a question or an enhancement.
  • I've searched for similar issues and didn't find a duplicate.
  • I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
  • I agree to follow Nextcloud's Code of Conduct.

Steps to reproduce

  1. Configure auto-upload
  2. Take some photos

Expected behaviour

If the uploaded succeeded, it should be marked as succeeded on the client side.
Even if the original attempt did fail on the client for any reason (e.g. network timeout), on retry the client should detect conflict with the existing server-side file and offer to resolve it instead of infinite retry cycle.

Actual behaviour

Files are being uploaded to the server successfully. However, they aren't marked as such on the client side and Android client tries to upload them again. Instead of detecting conflict and offering to resolve, it fails the upload due to "Unknown reason" and attempts to upload again, indefinitely.

Android version

16

Device brand and model

Samsung S22

Stock or custom OS?

Stock

Nextcloud android app version

3.35.2

Nextcloud server version

31.0.10

Using a reverse proxy?

Yes

Android logs

N/A

Server error logs

[HIDDEN] [05/Feb/2026:01:32:35 +0000] "HEAD /remote.php/dav/files/[HIDDEN]/20260201_163312.jpg HTTP/1.1" 200 802 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.35.2"
[HIDDEN] [05/Feb/2026:01:32:36 +0000] "PROPFIND /remote.php/dav/files/[HIDDEN]/20260201_163312.jpg HTTP/1.1" 207 1479 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.35.2"
[HIDDEN] [05/Feb/2026:01:32:36 +0000] "PROPFIND /remote.php/dav/files/[HIDDEN]/20260201_163312.jpg HTTP/1.1" 207 1479 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.35.2"
[HIDDEN] [05/Feb/2026:01:32:37 +0000] "HEAD /remote.php/dav/files/[HIDDEN]/20260201_182117.jpg HTTP/1.1" 200 802 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.35.2"
[HIDDEN] [05/Feb/2026:01:32:38 +0000] "PROPFIND /remote.php/dav/files/[HIDDEN]/20260201_182117.jpg HTTP/1.1" 207 1481 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.35.2"
[HIDDEN] [05/Feb/2026:01:32:38 +0000] "PROPFIND /remote.php/dav/files/[HIDDEN]/20260201_182117.jpg HTTP/1.1" 207 1481 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.35.2"

Additional information

I have NextCloud client installed and configured identically on multiple Android devices (same server). The only install that is affected by the bug is on a Samsung S22 phone. This phone has NextCloud client installed since ages, and the bug appeared just recently, so it looks like 3.35 client regression.
I won't have access to a PC with ADB in near future, so cannot provide client logs for now.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions