[bug]: Blank page and endless /meta/ requests after signing in from a work item e-mail link
Maintainer thường phản hồi trong vòng 1 ngày
Đá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
- Sign out (or let the session expire).
- Open a work item link in the old form, e.g. the one in a notification e-mail:
/<workspace>/projects/<projectId>/issues/<issueId>. - You land on
/?next_path=/<workspace>/projects/<projectId>/issues/<issueId>. Sign in. - 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
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của makeplane/plane
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[bug]: Comment external_id is deduplicated per project instead of per work itemCó thể đã có người làm @MishraTanishq619 đã nhận 21 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
makeplane/plane#10195 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Missing optional chaining on actor_details and reaction_items in apps/space reactions and votesCó thể đã có người làm @ghazy2001 đã nhận 29 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
makeplane/plane#10111 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
makeplane/plane#10082 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của makeplane/plane
Issue tương tự
-
good first issue help wanted
Độ khó 2/5 Dưới một giờ Mức phù hợp với người mới 86/100
Intelligenza-Umana/intelligenza-umana-web#16 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
open-webui/open-webui#35184 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
danielmiessler/LifeOS#3001 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày