My Caps shows "Shared" on private Caps that were never shared
維護者通常 1 天內回覆
評估
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 新手友好度
- 78/100
- Issue 類型
- 缺陷
- 描述清晰度
- 描述清楚
- 活躍度
- 活躍
- 技術堆疊
- mysql, typescript
研究方向
閱讀 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
- In the web dashboard, make a Cap private, or record one in an org that has "Start new recordings private" turned on.
- Don't share it with the organization or a space.
- Open My Caps. The card says "Shared".
- 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,
mainat 2bffa46a4 - Operating system, version: any (server-side query)
- 主要語言
- Rust
- 星號
- 25.4k
- 分支
- 2.4k
- 平均合併
- 19 小時 49 分鐘
- 30 天內合併 PR
- 701
環境準備
- 提供 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
CapSoftware/Cap 的其他 Issue
-
Download, FAQ, privacy and terms pages have no meta description可能已有人在做 @patrickballard 於 24 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 82/100
CapSoftware/Cap#3675 · 1 則留言 ·
維護者通常 1 天內回覆
-
self hosting
難度 2/5 1-3 小時 新手友好度 68/100
CapSoftware/Cap#2384 · 3 則留言 ·
維護者通常 1 天內回覆
-
Dashboard pagination causes full page reloads on self-hosted Cap可能已有人在做 @DipanshuAmbilkar03 於 22 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 88/100
CapSoftware/Cap#2305 · 2 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
CapSoftware/Cap#1714 · 3 則留言 ·
維護者通常 1 天內回覆
-
Exports with clip transitions can end early without an error可能已有人在做 @AksharP5 今天認領。 未關閉
難度 3/5 1-2 天 新手友好度 73/100
CapSoftware/Cap#4571 · 1 則留言 ·
維護者通常 1 天內回覆
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆
-
Document Web UI未關閉
難度 2/5 1-3 小時 新手友好度 68/100
維護者通常 1 天內回覆
-
parquet: reject truncated BYTE_STREAM_SPLIT numeric pages instead of silently fabricating values未關閉bug
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 1 天內回覆
-
enhancement
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆