Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đã đóng Phù hợp với người mới
#62,680 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@ELHart05 đang làm issue này rồi.

Từ ngày 12/8/2026.

  • #63189 của @ELHart05 — đang mở

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
76/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
typescript
Lĩnh vực
frontend

Hướng nghiên cứu

Bắt đầu với apps/settings/src/store/authtoken.ts và kiểm tra đường dẫn lỗi của addToken, sau đó so sánh cách các hàm khác trong tệp đó báo cáo lỗi. Đọc apps/settings/src/components/AuthTokenSetup.vue để theo dõi cách xử lý catch và tái hiện vấn đề bằng cách chặn endpoint /settings/personal/authtokens. Hoàn tất khi lỗi tạo token khiến một lỗi được hiển thị cho người dùng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
PHP
Star
37k
Fork
5.3k
Merge trung bình
2 ngày 6 giờ
Pull request đã merge (30 ngày)
702

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của nextcloud/server

Tất cả issue của nextcloud/server

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.