Text app does not detect changed files on external ressources
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- javascript, nodejs
调研方向
The issue involves external storage handling and caching in the Nextcloud Text app. Look at the filesystem abstraction layer and how file timestamps are compared. Check the caching mechanism in the text editor component, likely in Vue files. Start by examining the external storage integration and the conflict detection logic that used to work. Running the reproduction steps locally will help identify where the cache is not invalidated.
由索引模型根据 Issue 内容生成。
描述
Describe the bug
Nextcloud text does not detect changes to files in the filesystem. Overwrites changed files with stale content.
To Reproduce
Steps to reproduce the behavior:
- Add an external to nextcloud
- create file test.md on the external storage
- open test.md in nextcloud
- add text "nexlcoudcontent" to the file via nextcloud text
- open test.md outside of nextcloud, where the external(!) storage is primarily used
- change text to "externalcontent" in the file via some external resource
- open test.md in nextcloud
- content of the file is still "nextcloudcontent"
- change content to "stillnextcloudcontent"
- safe the file in nextcloud
- there is NO conflict, the real filesystem content is ignored and overwritten
Even the following is possible:
- Add an external to nextcloud
- create file test.md on the external storage
- open test.md in nextcloud
- add text "nexlcoudcontent" to the file via nextcloud text
- open test.md outside of nextcloud, where the external(!) storage is primarily used
- change text to "externalcontent" in the file via some external resource
- open test.md in nextcloud
- content of the file is still "nextcloudcontent"
- rename the file to test.txt within nextcloud
- open test.txt in nextcloud
- content of the file is "externalcontent" now
- rename the file back to test.md
- open test.md in nextcloud
- content of the file changes back to "nextcloudcontent"
even running "occ files:scan" in between does not make any difference. Even if "occ files:scan" does detect the changed file, the integrated nextcloud text editor still uses its outdated cache.
Expected behavior
Nextcloud should always(!) check if the file on the filesystem has changed and should deny to use other sources if the file has changed
At least it should use a timestamp within its non-filesystem-cache for cached files and should compare these when writing: if the timestamp in the non-filesystem-cache and the timestamp of the file in the filesystem are different, then obviously some external change was made to the file; in this nextcloud should deny overwriting the file and instead show a conflict warning!
Silently overwriting changed files on external(!) storage is fatal!
This already worked in the past. I'm using this for some time and in the past a conflict was shown. This has gone with one of the last updates. So this is a serious regression.
Screenshots
n/a
Server details:
- Nextcloud version: from Version 34.0.x on, currently using 35.0.0
- PHP Version: 8.4
- Database: MariaDB 11.8.6
- OS: Debian 13
Client details:
- OS: several (Linux, Windows, Android)
- Browser: several (Firefox, Chrome, Android App)
- Browser version: n/a
- Device: n/a
- 主要语言
- JavaScript
- 星标
- 665
- 派生
- 133
- 平均合并
- 1 天 17 小时
- 30 天内合并 PR
- 172
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
nextcloud/text 的其他 Issue
-
0. Needs triage bug
难度 2/5 1-3 小时 新手友好度 67/100
nextcloud/text#9482 · 1 个 reaction ·
维护者通常 1 天内回复
-
0. Needs triage bug
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
folder description not shows when using folder tree to navigate可能重新可做 关联的 PR 已关闭且未合并。 未关闭bug feature: folder description
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
1. to develop design call discuss discussion ux
难度 5/5 一周以上 新手友好度 35/100
维护者通常 1 天内回复
-
bug
难度 3/5 1-2 天 新手友好度 58/100
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
jellyfin/jellyfin-desktop#1290 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
zilliztech/memsearch#832 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
sindresorhus/serialize-error#120 ·
-
难度 2/5 1-3 小时 新手友好度 65/100
sindresorhus/slugify#83 ·