Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Server events lose session IDs when profile ID equals device ID

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

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

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript
領域
api, backend

調査の方向性

Start with SessionBuffer.getExistingSession({ profileId }) and the worker code that resolves sessions for server-like user agents through the profile-to-device index. Confirm that the index is skipped when profile_id equals device_id, then check whether a fallback lookup by the profile ID as device ID returns the right session. Done when server events for such profiles are stored with the active session's session_id and device_id, and other profiles still resolve through the existing index.

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

説明

When a server-side event is sent with a profile ID that is also used as its device ID, the /track API can find the active session and return its session ID. However, the event may be stored with an empty session_id and device_id.

The worker handles server-like user agents by resolving the session through the profile-to-device index. The session buffer does not create that index when profile_id and device_id are equal, so the worker cannot find the session—even though it exists under the device key.

Suggested change
In SessionBuffer.getExistingSession({ profileId }), if the profile index is absent, try looking up the session using the profile ID as the device ID. Return it only when the stored profile_id and device_id both match the requested profile ID.

Expected result
Server-side events for a profile whose ID equals its device ID are stored with the active session’s correct IDs. Other profiles continue to resolve through the existing profile index.

主要言語
TypeScript
スター
7.1k
フォーク
516
平均マージ
1日 2時間
マージ済み PR(30日)
18

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

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

Openpanel-dev/openpanel のほかの issue

Openpanel-dev/openpanel の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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