nextcloud / nextcloud/android

[BUG]Auto upload sometimes does not upload due to Locked files

Open
#16,434 6 comments 3 reactions 1 assignee Claimed by @alperozturk96 View on GitHub
bug feature: auto upload
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.Take a series of photos ( 25 in my case)
2. Wait Nextcloud to start uploading
3. Uploading completed only for 22 photos, other cannot be uploaded because of file lock
4. Nextcloud send notification with Locked description
5. Uploading file again manually will complete normally.

I have a feeling that nextcloud app wont try again to upload a file when file is not locked anymore. My Galaxy S25 Ultra is sometimes enhancing the photos so file is locked for another 6 seconds after taking is via Camera app. Nextcloud should try to auto upload in 15 minutes for example.

Log search with Locked, AutoUpload,Upload verb is here:

### Expected behaviour

1. Take series of photos
2. Wait for autoupload to complete
3. If any file is locked, app should try again in few minutes

### Actual behaviour

1. Take series of photos
2. Wait for autoupload to complete
3. If any file is locked, app wont try again and photos are never uploaded if not done manually.

### Android version

16

### Device brand and model

Samsung Galaxy S25 Ultra

### Stock or custom OS?

Stock

### Nextcloud android app version

Nextcloud QA 16393

### Nextcloud server version

31.0.13

### Using a reverse proxy?

Yes

### Android logs

[logs_Upload.txt](https://github.com/user-attachments/files/25044865/logs_Upload.txt)
[logs_AutoUpload.txt](https://github.com/user-attachments/files/25044864/logs_AutoUpload.txt)
[logs_Locked.txt](https://github.com/user-attachments/files/25044863/logs_Locked.txt)

### Server error logs

```bash
No errors.
```

### Additional information

_No response_

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.