Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta Adatta ai principianti
#65,090 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
78/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
javascript
Ambito
frontend

Direzione di ricerca

Inizia in apps/files/src/views/FilesList.vue, in fetchContent(), e traccia il modo in cui l'AbortController di ogni richiesta influisce su catch e finally. Verifica che la richiesta annullata venga gestita a livello debug senza sovrascrivere l'errore o lo stato di caricamento correnti. Il lavoro è completato quando il passaggio rapido tra All files e Deleted files non registra più un errore e non lascia il fetch più recente in uno stato errato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
PHP
Stelle
37k
Fork
5.3k
Merge medio
2g 6h
PR unite (30g)
702

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di nextcloud/server

Tutte le issue di nextcloud/server

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.