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

オープン
#10,289 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

2026年11月15日 から。

  • #10290 @ysalitrynskyi による — オープン

評価

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

調査の方向性

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.

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

説明

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.

主要言語
TypeScript
スター
63k
フォーク
6.5k
平均マージ
2日 16時間
マージ済み PR(30日)
70

環境構築

はじめの一歩

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

makeplane/plane のほかの issue

makeplane/plane の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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