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

未關閉 適合新手
#4,569 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

@AksharP5 已經在處理了。

開始於 2026年11月27日。

  • #4570 來自 @AksharP5 —— 未關閉

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
78/100
Issue 類型
缺陷
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
mysql, typescript
領域
database, frontend

研究方向

閱讀 caps-page-data.tsx,並將其 sharedOrganizations 查詢與 lib/folder.ts 中使用 shared_videos 的分享查詢進行比較。先追蹤 CapsPageView 如何為 My Caps 建立分享清單;issue 回報指出,對於未分享的私人 Cap,MySQL 8.4 會傳回 Cap 本身所屬的組織。完成條件是:該 Cap 在 My Caps 中顯示「Not shared」,與其資料夾卡片上的顯示一致。

由索引模型根據 Issue 內容生成。

描述

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)
主要語言
Rust
星號
25.4k
分支
2.4k
平均合併
19 小時 49 分鐘
30 天內合併 PR
701

環境準備

  • 提供 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

CapSoftware/Cap 的其他 Issue

查看 CapSoftware/Cap 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。