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

[Bug]: authtoken.ts does not throw or show error in addToken function

Chiusa Adatta ai principianti
#62,680 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@ELHart05 ci sta già lavorando.

Dal 12/8/2026.

  • #63189 di @ELHart05 — aperta

Valutazione

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

Direzione di ricerca

Inizia da apps/settings/src/store/authtoken.ts e analizza il percorso di errore di addToken, quindi confronta il modo in cui le altre funzioni di quel file segnalano i fallimenti. Leggi apps/settings/src/components/AuthTokenSetup.vue per seguire la gestione di catch e riproduci il problema bloccando l’endpoint /settings/personal/authtokens. Il lavoro è completato quando i fallimenti nella creazione del token producono la visualizzazione di un errore all’utente.

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

Descrizione

0. Needs triage 35-feedback bug feature: settings papercut
⚠️ This issue respects the following points: ⚠️
Bug description

In apps/settings/src/store/authtoken.ts the addToken function does not throw an error to be used by apps/settings/src/components/AuthTokenSetup.vue the catch section of the code is basically deed code, as the function catches any error and returns null, which is not handled by AuthTokenSetup.vue, it tries to catch an error which is never thrown, and it does not show the error unlike the other functions in the authtoken.ts file.

Steps to reproduce
  1. Block the '/settings/personal/authtokens' endpoint in the browser, or disable it the server.
  2. Try to create a new device token, an error is never shown.
Expected behavior

Show an error for the user

Nextcloud Server version

35 (master)

Operating system

RHEL/CentOS

PHP engine version

PHP 8.5

Web server

Nginx

Database engine version

MariaDB

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

Fresh Nextcloud Server install

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

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.