nextcloud / nextcloud/android

Infinite retry for conflicting auto-uploads

Open
#16,446 13 comments 4 reactions 1 assignee Claimed by @alperozturk96 View on GitHub
bug
Dominant language
Kotlin
Stars
5.6k
Forks
2k
Avg merge
2d 18h
Merged PRs (30d)
92

Description

### ⚠️ Before posting ⚠️

- [x] This is a **bug**, not a question or an enhancement.
- [x] I've [searched for similar issues](https://github.com/nextcloud/android/issues) and didn't find a duplicate.
- [x] I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
- [x] I agree to follow Nextcloud's [Code of Conduct](https://nextcloud.com/contribute/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

```bash
[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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.