Text app does not detect changed files on external ressources
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 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時間
- マージ済み PR(30日)
- 172
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nextcloud/text のほかの issue
-
0. Needs triage bug
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
nextcloud/text#9482 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
0. Needs triage bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
folder description not shows when using folder tree to navigate再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンbug feature: folder description
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
1. to develop design call discuss discussion ux
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
nextcloud/text#9334 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
feimacode/open-design-agent-kit#66 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
xojs/eslint-config-xo#134 ·
-
FEATURE REQUEST
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
linuxmint/cinnamon-spices-extensions#1193 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
huggingface/transformers.js#1839 ·
メンテナーはふだん 1 日以内に返信