Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Text app does not detect changed files on external ressources

Đang mở
#9,236 4 bình luận 1 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript, nodejs
Lĩnh vực
backend, databases

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug

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:

  1. Add an external to nextcloud
  2. create file test.md on the external storage
  3. open test.md in nextcloud
  4. add text "nexlcoudcontent" to the file via nextcloud text
  5. open test.md outside of nextcloud, where the external(!) storage is primarily used
  6. change text to "externalcontent" in the file via some external resource
  7. open test.md in nextcloud
  8. content of the file is still "nextcloudcontent"
  9. change content to "stillnextcloudcontent"
  10. safe the file in nextcloud
  11. there is NO conflict, the real filesystem content is ignored and overwritten

Even the following is possible:

  1. Add an external to nextcloud
  2. create file test.md on the external storage
  3. open test.md in nextcloud
  4. add text "nexlcoudcontent" to the file via nextcloud text
  5. open test.md outside of nextcloud, where the external(!) storage is primarily used
  6. change text to "externalcontent" in the file via some external resource
  7. open test.md in nextcloud
  8. content of the file is still "nextcloudcontent"
  9. rename the file to test.txt within nextcloud
  10. open test.txt in nextcloud
  11. content of the file is "externalcontent" now
  12. rename the file back to test.md
  13. open test.md in nextcloud
  14. 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
Ngôn ngữ chính
JavaScript
Star
665
Fork
133
Merge trung bình
1 ngày 17 giờ
Pull request đã merge (30 ngày)
172

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của nextcloud/text

Tất cả issue của nextcloud/text

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.