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 天内回复