[Bug] lark-drive 关闭 Wiki 链接分享时,v1 PATCH 返回成功但权限未生效
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- Half a day
- Newbie friendliness
- 35/100
Research direction
Start with the skill guide skills/lark-drive/references/lark-drive-workflow-permission-governance.md around lines 100-110, which holds the v1 PATCH steps the issue says are wrong. Reproduce by running drive permission.public patch with --dry-run, then compare the v1 and v2 GET readbacks against a test Wiki node. Done means the guide and any CLI write path confirm closed through the v2 PATCH, with the same node read back as closed.
Written by the indexing model from the issue text.
Description
问题
在 lark-cli 1.0.100 中,官方 lark-drive 权限治理指引使用 drive permission.public patch 修改公开权限,并用 drive +permission-get-setting 验证。--dry-run 显示写入是 PATCH /open-apis/drive/v1/permissions/:token/public,回读是 GET /open-apis/drive/v2/permissions/:token/public。工作流指引
复现步骤
选一个有权限管理且链接分享为 tenant_readable 的测试 Wiki 节点。把示例中的 WIKI_NODE_TOKEN 替换为该节点的 token,并全程使用同一身份。
-
按指引执行 v1 写入。
lark-cli drive permission.public patch \ --params '{"token":"WIKI_NODE_TOKEN","type":"wiki"}' \ --data '{"link_share_entity":"closed"}' --as user --yes -
用相同节点 token 回读。
lark-cli drive +permission-get-setting --token WIKI_NODE_TOKEN --type wiki --as user实际结果是 v1 PATCH 返回成功,v1 和 v2 GET 回读的
link_share_entity仍是tenant_readable。预期回读为closed。 -
对同一个节点用相同字段调用 v2 PATCH,再重复第 2 步。
lark-cli api PATCH /open-apis/drive/v2/permissions/WIKI_NODE_TOKEN/public \ --params '{"type":"wiki"}' \ --data '{"link_share_entity":"closed"}' --as user实际回读为
closed,前后对比仅link_share_entity变化。飞书 v2 PATCH 文档
建议
将官方 skill 中的 Wiki 链接分享写入指引切到 v2 PATCH,保留写前确认,并以同一 Wiki 节点回读 closed 作为成功判据。CLI 可补充带写前确认的 v2 写入命令。
- Dominant language
- Go
- Stars
- 18.2k
- Forks
- 1.4k
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 18
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from larksuite/cli
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
domain/im
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
bug domain/doc
Difficulty 1/5 Under an hour Newbie friendliness 77/100
Maintainers usually reply within 1 day
-
mail: all-ASCII draft bodies are hard-wrapped every 998 bytes, inserting newlines inside words and tagsPossibly taken @linye157 claimed this 26 days ago. Opendomain/mail
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
Maintainers usually reply within 1 day
-
auth: a 429 from the Token Endpoint during refresh deletes a still-valid loginPossibly taken @linye157 claimed this 26 days ago. Openbug domain/auth domain/im
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
larksuite/cli#2869 · 5 comments ·
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
github/github-mcp-server#3960 ·
Maintainers usually reply within 3 days
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
JuliusBrussee/caveman#1594 ·
Maintainers usually reply within 1 day
-
C-bug O-community X-blathers-triaged
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
cockroachdb/cockroach#176264 · 1 comment ·
-
security trivy
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
kubefleet-dev/kubefleet#1068 ·
Maintainers usually reply within 3 days