Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

クローズ 初心者向け
#62,680 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@ELHart05 がすでに取り組んでいます。

2026年8月12日 から。

  • #63189 @ELHart05 による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
76/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
静か
技術スタック
typescript
領域
frontend

調査の方向性

apps/settings/src/store/authtoken.ts から始めて addToken のエラーパスを調べ、その後、このファイル内の他の関数が失敗をどのように報告しているかを比較します。apps/settings/src/components/AuthTokenSetup.vue を読んで catch の処理を確認し、/settings/personal/authtokens エンドポイントをブロックして問題を再現します。トークンの作成に失敗したときにユーザーにエラーが表示されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
PHP
スター
37k
フォーク
5.3k
平均マージ
2日 1時間
マージ済み PR(30日)
702

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

nextcloud/server のほかの issue

nextcloud/server の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。