[BUG] Available offline files are downloaded at view and re-uploaded
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 4.2k
- Forks
- 3.1k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 7
Description
Actual behaviour
On an Android tablet I mark a folder in an OCIS account to be available offline. I see that all files are downloaded and the folder appears in the available offline tab. In my case the folder only contains images.
Problem pops up after that, e.g. when viewing them or after that (without doing anything).
When viewing, they are downloaded (progress bar indicates this and it also takes a while) and even uploaded back to the server. The upload is sometimes also triggered without viewing.
After that the folder is usually marked with a red checkbox.
Note that files have not changed.
I tried this now many times also varying the selected folder and errors happens always in this or another way (after viewing or just after waiting).
Expected behaviour
When files are successfully downloaded (through available offline) they should
- not be re-downloaded when viewing or without doing anything
- not re-uploaded again afterwards
Steps to reproduce
- Mark folder as available offline
- Potentially view images within owncloud OR just wait
Can this problem be reproduced with the official owncloud server?
(url: https://demo.owncloud.org, user: test, password: test)
NO, not reproducible, working as expected.
Environment data
Android version: 10
Device model: Samsung Galaxy Tab S5e
Stock or customized system: Stock
ownCloud app version: 4.1.0 (adbe7447c)
ownCloud server version: OCIS 4.0.2
Logs
Web server error log
Insert your webserver log here
ownCloud log (data/owncloud.log)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the offline-folder flow on Android 10 with app 4.1.0 and OCIS 4.0.2, then inspect the attached owncloud.2023-10-17.log for the download and upload sequence. Done means files marked available offline are not downloaded again when viewed or while idle, and are not uploaded again or marked with a red checkbox.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100