[bug]: Blank page and endless /meta/ requests after signing in from a work item e-mail link

Đang mở
#10,289 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

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

Từ ngày 15/11/2026.

  • #10290 của @ysalitrynskyi — đang mở

Đánh giá

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

Hướng nghiên cứu

Start in apps/web/lib/wrappers/authentication-wrapper.tsx: router.push() runs in the render body of the NON_AUTHENTICATED branch, so each re-render restarts navigation. Follow the old work item URL's clientLoader (getIssueMetaFromURL, then the redirect to /<workspace>/browse/<KEY>-<N>/) to see why interrupted loaders keep firing /meta/. Note pull request #10290 is already open against this, so read it before starting. Done means one /meta/ request and a completed redirect.

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

Mô tả

Is there an existing issue for this?
  • I have searched the existing issues
Current behavior

Signing in from a work item link of the form /<workspace>/projects/<projectId>/issues/<issueId> (the link format used in notification e-mails) leaves a blank page, and the browser sends GET /api/workspaces/<workspace>/projects/<projectId>/issues/<issueId>/meta/ over and over.

On a self-hosted instance, one browser tab sent the same /meta/ request about 35 times a second for more than half an hour. Every request opened a database connection, so the database ran out of connections and other requests began to fail. Reproduced locally with a production build of preview against a stub API: about 1,200 /meta/ requests in 9 seconds, until the browser refused new ones (net::ERR_INSUFFICIENT_RESOURCES), and the page never left /?next_path=….

Expected: one /meta/ request, then the redirect to /<workspace>/browse/<KEY>-<N>/.

Cause. AuthenticationWrapper (apps/web/lib/wrappers/authentication-wrapper.tsx) calls router.push() in its render body, for example in the NON_AUTHENTICATED branch used by the sign-in page:

if (currentUserProfile?.id && isUserOnboard) {
  const currentRedirectRoute = getWorkspaceRedirectionUrl();
  router.push(currentRedirectRoute);
  return <></>;
}

React Router re-renders the route tree on every navigation state change, so every render starts another navigation, which interrupts the one before it. When next_path is a route whose clientLoader waits on the network, as the old work item URL does (it calls getIssueMetaFromURL and then redirects to /browse/…), no navigation ever finishes. The interrupted loaders' requests are not aborted, so each one still reaches the API.

Steps to reproduce
  1. Sign out (or let the session expire).
  2. Open a work item link in the old form, e.g. the one in a notification e-mail: /<workspace>/projects/<projectId>/issues/<issueId>.
  3. You land on /?next_path=/<workspace>/projects/<projectId>/issues/<issueId>. Sign in.
  4. The page stays blank. In the network tab, GET …/issues/<issueId>/meta/ repeats continuously.

Visiting /?next_path=/<workspace>/projects/<projectId>/issues/<issueId> while already signed in reproduces it too. It is easier to see when the API is slow (tens to hundreds of milliseconds per request), e.g. from a distant region.

Environment

Production

Browser

Mozilla Firefox (also reproduced in Chromium)

Edition

Community

Version

v1.3.1. The same code is in v1.4.3, v1.5.0-rc2 and preview.

Ngôn ngữ chính
TypeScript
Star
63k
Fork
6.5k
Merge trung bình
2 ngày 16 giờ
Pull request đã merge (30 ngày)
70

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

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 makeplane/plane

Tất cả issue của makeplane/plane

Issue tương tự

Thêm issue về TypeScript

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.