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

[Bug]: F-34 Files: a cancelled directory fetch is logged as an error and can leave an error state behind

Đang mở Phù hợp với người mới
#65,090 0 bình luận 0 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ó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
78/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
Lĩnh vực
frontend

Hướng nghiên cứu

Bắt đầu trong apps/files/src/views/FilesList.vue tại fetchContent(), rồi theo dõi cách AbortController của từng request ảnh hưởng đến catch và finally. Xác nhận rằng request bị hủy được xử lý ở mức debug mà không ghi đè lên lỗi hoặc trạng thái loading hiện tại. Hoàn thành khi việc chuyển nhanh giữa All files và Deleted files không còn ghi log lỗi hoặc khiến fetch mới hơn ở trạng thái không chính xác.

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

Mô tả

0. Needs triage 35-feedback bug
⚠️ This issue respects the following points: ⚠️
  • This is not a troubleshooting question, general support matter, or webserver/proxy problem, but likely a bug (if unsure, ask the Community Help Forum).
  • This issue is not already reported on Github OR solved at the Community Help Forum (I've searched!).
  • I'm using a maintained major version of Nextcloud Server and tested against the latest patch level. (Supported major versions and current patch levels).
  • I agree to follow Nextcloud's Code of Conduct.
  • I've tried my best to provide clear reproduction steps that someone unfamiliar with this bug could use to reproduce it.
Bug description

F-34 · Files: a cancelled directory fetch is logged as an error and can leave an error state behind

Repository nextcloud/server
Severity Low (console error; in a race, the error message or a finished loading state of the old request)
Component apps/files/src/views/FilesList.vue (fetchContent())
Affects 35.0.1
Verified Chrome DevTools on a production instance (switching between All files and Deleted files right after a delete)

What happens

After deleting files and switching views quickly, the console shows

[DEBUG] files: Cancelled previous ongoing fetch
[ERROR] files: Error while fetching content  {error: …}

Cause

fetchContent() aborts the running request when a new one starts. The aborted request rejects,
and its catch treats the abort like any other failure:

  • it logs Error while fetching content at error level,
  • it sets this.error, after the new request already reset it,
  • its finally sets loading = false while the new request is still running.

Fix

Each call keeps its own AbortController. When the request was aborted, the catch only logs at
debug level and leaves the state alone; finally touches loading only when the call is still the
current one.

Steps to reproduce

see the top

Expected behavior

see the top

Nextcloud Server version

35

Operating system

None

PHP engine version

None

Web server

None

Database engine version

None

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?
  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other
Configuration report

List of activated Apps

Nextcloud Signing status

Nextcloud Logs

Additional info

No response

Ngôn ngữ chính
PHP
Star
37k
Fork
5.3k
Merge trung bình
2 ngày 6 giờ
Pull request đã merge (30 ngày)
702

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

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

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/server

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

Issue tương tự

Thêm issue về PHP

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.