[Bug]: F-34 Files: a cancelled directory fetch is logged as an error and can leave an error state behind
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
⚠️ 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 contentat error level, - it sets
this.error, after the new request already reset it, - its
finallysetsloading = falsewhile 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
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di nextcloud/server
-
0. Needs triage 35-feedback bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
0. Needs triage 35-feedback bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
I maintainer di solito rispondono entro 1 giorno
-
0. Needs triage 35-feedback bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
0. Needs triage 35-feedback bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
0. Needs triage 35-feedback bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di nextcloud/server
Issue simili
-
Lead create/update: a product row without a "product_id" key passes LeadForm validation and fails in the database (500)Forse già presa @Arslan-TR l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
krayin/laravel-crm#2681 ·
I maintainer di solito rispondono entro 2 giorni
-
[CoreBundle] Migrations are silently skipped on MariaDB with DBAL 4 (AbstractMigration::isMySql())ApertaPotential Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Sylius/Sylius#19270 · 1 commento · 4 reazioni ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
invoiceninja/invoiceninja#13320 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
-
sync-en
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno