[Bug]: authtoken.ts does not throw or show error in addToken function
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 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 の本文から書いたものです。
説明
⚠️ This issue respects the following points: ⚠️
- This is a bug, not a question or a configuration/webserver/proxy issue.
- This issue is not already reported on Github OR Nextcloud Community Forum (I've searched it).
- Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
- I agree to follow Nextcloud's Code of Conduct.
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
- Block the '/settings/personal/authtokens' endpoint in the browser, or disable it the server.
- 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
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nextcloud/server のほかの issue
-
0. Needs triage 35-feedback bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
0. Needs triage 35-feedback bug
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
メンテナーはふだん 1 日以内に返信
-
0. Needs triage 35-feedback bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
0. Needs triage 35-feedback bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
0. Needs triage 35-feedback bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
nextcloud/server の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
customer-support needs-triage Platform(Default)
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
grokability/snipe-it#19767 ·
メンテナーはふだん 1 日以内に返信
-
[Code Quality] SfxDownloader extract path has no destination-writability pre-check for cached zipsオープンpriority:low type:refactor
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
crazy-goat/workerman-bundle#1052 ·
メンテナーはふだん 1 日以内に返信
-
sync-en
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信