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

Server events lose session IDs when profile ID equals device ID

Đang mở
#535 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

Chưa có ai nhận issue nà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
55/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
api, backend

Hướng nghiên cứu

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.

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

Mô tả

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.

Ngôn ngữ chính
TypeScript
Star
7.1k
Fork
516
Merge trung bình
1 ngày 2 giờ
Pull request đã merge (30 ngày)
18

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

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

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 Openpanel-dev/openpanel

Tất cả issue của Openpanel-dev/openpanel

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.