Shell-quote source IDs in caseworkctl BReg package recovery commands
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
从 crates/registry-caseworkctl/src/breg_package.rs 开始,重点关注 caseworkctl check --against-breg-package,以及现有的、用于项目路径和包路径的 shell_word 用法。在两个恢复命令中都通过 shell_word 传递 source ID,然后添加并运行一个使用包含空白字符和 shell 元字符的 ID 的单元测试。完成的标准是:复制的命令将 source ID 保留为一个字面量参数。
由索引模型根据 Issue 内容生成。
描述
Problem
caseworkctl check --against-breg-package builds recovery commands (the recheck command and repin_command) with an unquoted --source-id. CaseworkProject::check only requires a source ID to be non-empty and unique, so an ID containing whitespace or shell metacharacters yields a command that the shell splits or interprets when an operator copies it.
Fix direction
Pass the source ID through the existing shell_word helper, as the project and package paths already are, and add a unit test with a source ID containing a space and a metacharacter.
Raised by the Codex review on #1718 (crates/registry-caseworkctl/src/breg_package.rs).
- 主要语言
- Rust
- 星标
- 2
- 派生
- 0
- 平均合并
- 8 小时 10 分钟
- 30 天内合并 PR
- 222
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
registrystack/registry-stack 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
registrystack/registry-stack#1753 ·
维护者通常 1 天内回复
-
area:breg bug criticality:p3 triage:needs-implementation
难度 2/5 1-3 小时 新手友好度 85/100
registrystack/registry-stack#1682 ·
维护者通常 1 天内回复
-
area:casework bug criticality:p3 triage:needs-implementation
难度 1/5 1 小时以内 新手友好度 88/100
registrystack/registry-stack#1669 ·
维护者通常 1 天内回复
-
agent-ready area:platform criticality:p3 documentation triage:needs-implementation
难度 1/5 1 小时以内 新手友好度 90/100
registrystack/registry-stack#1639 ·
维护者通常 1 天内回复
-
area:evidence bug criticality:p3 triage:needs-implementation
难度 2/5 1-3 小时 新手友好度 88/100
registrystack/registry-stack#1620 ·
维护者通常 1 天内回复
查看 registrystack/registry-stack 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 88/100
aws-samples/sample-pacer#76 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 86/100
axodotdev/cargo-dist#2523 ·
维护者通常 2 天内回复