My Caps shows "Shared" on private Caps that were never shared

Đang mở Phù hợp với người mới
#4,569 1 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

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

Từ ngày 27/11/2026.

  • #4570 của @AksharP5 — đang mở

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
78/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ệ
mysql, typescript
Lĩnh vực
database, frontend

Hướng nghiên cứu

Đọc caps-page-data.tsx và so sánh truy vấn sharedOrganizations với phần tra cứu chia sẻ trong lib/folder.ts, vốn dùng shared_videos. Trước tiên, hãy lần theo cách CapsPageView tạo các danh sách chia sẻ cho My Caps; issue cho biết MySQL 8.4 trả về tổ chức của chính Cap đối với một Cap riêng tư chưa được chia sẻ. Hoàn tất khi Cap đó hiển thị “Not shared” trên My Caps, giống như trên thẻ thư mục của nó.

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

Mô tả

Description

My Caps labels every Cap "Shared", including private Caps that nobody else can open. "Not shared" never appears on the My Caps root page. Move the same Cap into a folder and its card says "Not shared".

The card shows "Not shared" only when the Cap is private and its sharedOrganizations and sharedSpaces lists are both empty. On My Caps, caps-page-data.tsx fills sharedOrganizations by joining the Cap's own organization (videos.orgId), not the organizations it was shared with (shared_videos). Every Cap belongs to an organization, so the list is never empty and the card always says "Shared". The folder page (lib/folder.ts) joins through shared_videos, which is why it gets this right.

Expected: a private Cap with no organization or space shares says "Not shared", the same as it does inside a folder.
Actual: it says "Shared", which tells the owner that people can see a recording when only the owner can. VideosPolicy lets an org member view a private Cap only through shared_videos or a space share.

Reproduction
  1. In the web dashboard, make a Cap private, or record one in an org that has "Start new recordings private" turned on.
  2. Don't share it with the organization or a space.
  3. Open My Caps. The card says "Shared".
  4. Move the Cap into a folder and open the folder. The same card says "Not shared".

The same thing happens when the page loader runs against MySQL 8.4 (baseline 2bffa46a4). For a private Cap with no shares, CapsPageView returns sharedOrganizations: [<its own org>].

Additional Context
  • Cap version: web, main at 2bffa46a4
  • Operating system, version: any (server-side query)
Ngôn ngữ chính
Rust
Star
25.4k
Fork
2.4k
Merge trung bình
19 giờ 49 phút
Pull request đã merge (30 ngày)
701

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 CapSoftware/Cap

Tất cả issue của CapSoftware/Cap

Issue tương tự

Thêm issue về Rust

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.