owncloud / owncloud/android

[BUG] File as a folder when syncing

Open
#4,761 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Contributions are welcome File list Sync Type:bug
Dominant language
Kotlin
Stars
4.2k
Forks
3.1k
Avg merge
1d 12h
Merged PRs (30d)
7

Description

Steps to reproduce
  1. Add a txt file to the account
  2. In app, download the file and go back to the list of files (marked with green)
  3. In the web, modify the txt file and save it.
  4. In app, pull to refresh
  5. When the file is syncing (blue badge), click on it to open
Actual behaviour

I noticed two different behaviours (it's a bit random)

  1. File is handled like a folder showing No files in here
  2. File is marked as conflicted (might be related with https://github.com/owncloud/android/issues/4733 ¿?)

I caught a video with behaviour 1.

https://github.com/user-attachments/assets/7f238089-73a5-4992-a815-25aa1cd828a9

This is not an easy one to reproduce and it does not happen every time. That's bad.

For that reason, my suggestion to avoid such bad cases is "blocking" the file while the blue icon is there. It would apply only to files (a syncing folder can be browsed, but not the files that are being synced).

Reproduced with both oCIS and oC10, using the app version `v4.7.0'

Devices:
Xiaomi Redmi Note 13
Samsung Galaxy Tab A8

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 with the listed reproduction steps on the app version and devices described, testing both oCIS and oC10 while a modified file is syncing. Trace the file-opening behavior during the blue sync state and verify that a syncing file is blocked rather than shown as a folder or marked conflicted.

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
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.