Modifying a file opened via Favorites is not detected as a file change

未关闭
#18,087 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
55/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
android, kotlin
领域
backend, mobile

调研方向

Start by tracing how opening a file through Favorites resolves its local path, then compare that with opening the same file from its directory and how each path reports changes to sync. The issue names no source files or tests, so first locate the relevant file-opening and sync change-detection entry points. Done means edits made through Favorites trigger synchronization just like edits made from the directory.

由索引模型根据 Issue 内容生成。

描述

0. Needs triage bug
⚠️ Before posting ⚠️
  • This is a bug, not a question or an enhancement.
  • I've searched for similar issues and didn't find a duplicate.
  • I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
  • I agree to follow Nextcloud's Code of Conduct.
Steps to reproduce
  1. Add a synced file to Favorites, here: Keepass .KDBX-file.
  2. Open the file via Favorites and modify it; tested with KeePassDX and Keepass2Android.
  3. Save the file and close KeePassDX/Keepass2Android.
  4. Observe the sync status/activity and trigger a manual sync. You will see "already synced" message only, no matter how long you wait
  5. Open the same file directly from its directory location, modify/save it, and observe the sync status/activity - you will see immediate sync because of file change.

Note: Settings like a.) 2-Way-Sync or b.) file-storage external/internal or c.) general Android sync-state do not matter at all!

Expected behaviour

Modifying a file opened via Favorites should be detected as a file change and trigger synchronization just like modifying the file when opened directly.

Actual behaviour
  • Opened via Favorites: File modification is not recognized; synchronization does not run.
  • Opened directly: File modification is recognized and synchronized as expected.
Android version

17

Device brand and model

Samsung Galaxy A57

Stock or custom OS?

Stock

Nextcloud android app version

35.1.0

Nextcloud server version

33.0.11

Using a reverse proxy?

I don't know

Android logs

No response

Server error logs

Additional information

Tested with 35.1.0, but also occurred in 35.0.2 and 35.0.1 and maybe even longer.
Tested with Samsung Galaxy A57, Samsung Galaxy A55 and Samsung Galaxy A52.

主要语言
Kotlin
星标
5.7k
派生
2.1k
平均合并
2 天 7 小时
30 天内合并 PR
149

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

nextcloud/android 的其他 Issue

查看 nextcloud/android 的全部 Issue

相似的 Issue

更多 Kotlin Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。