owncloud / owncloud/android

[BUG] Available offline files are downloaded at view and re-uploaded

Open
#4,192 6 comments 0 reactions 0 assignees View on GitHub

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

  1. not be re-downloaded when viewing or without doing anything
  2. not re-uploaded again afterwards
Steps to reproduce
  1. Mark folder as available offline
  2. 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)

owncloud.2023-10-17.log

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.