`token` commands echo a mistyped secret key given in the `--to` param back in the "alias not found" error
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
使用一个具有 secret 形式的无效值,重现报告中的 token transfer、token allowance 和 token balance 案例,同时检查文本输出和 JSON 输出。跟踪 --to、--spender 和 --account 参数的共享处理逻辑;完成的标准是具有 secret 形式的无效输入不会被回显,同时普通的别名错误仍然易于理解。
由索引模型根据 Issue 内容生成。
描述
What version are you using?
stellar-cli 28.1.0 (d0b26d9, built from main).
What did you do?
I accidentally passed something shaped like a secret key, but invalid, where an address was expected. Here a made-up S… string stands in for a mistyped secret:
stellar token transfer --id native --from alice --amount 1 --network testnet \
--to SBADKEYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
What did you expect to see?
An error that doesn't repeat the value back, like the one --from gives for the same input.
What did you see instead?
--from hides the value:
❌ error: invalid signing key or identity name
but --to prints it in full, in both text and JSON output:
❌ error: Account alias "SBADKEYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" not Found
{"error":{"type":"invalid_address","message":"Account alias \"SBADKEYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\" not Found"}}
With a real secret that has a one-character typo, this prints a near-copy of the secret to the terminal, logs and JSON consumers. token allowance --spender and token balance --account print it the same way.
- 主要语言
- Rust
- 星标
- 123
- 派生
- 147
- 平均合并
- 1 天 4 小时
- 30 天内合并 PR
- 31
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
stellar/stellar-cli 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 90/100
stellar/stellar-cli#2796 ·
维护者通常 1 天内回复
-
难度 1/5 1-3 小时 新手友好度 85/100
stellar/stellar-cli#2781 ·
维护者通常 1 天内回复
-
Display the full authorization tree before signing auth entries可能已有人在做 @DeadZen 于 7 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
stellar/stellar-cli#2779 ·
维护者通常 1 天内回复
-
`tx update sequence-number next` fails when the transaction source is a muxed account可能重新可做 关联的 PR 已关闭且未合并。 未关闭bug
难度 2/5 1-3 小时 新手友好度 76/100
stellar/stellar-cli#2774 ·
维护者通常 1 天内回复
-
`tx edit` fails on transaction XDR that is wrapped across multiple lines可能重新可做 关联的 PR 已关闭且未合并。 未关闭bug
难度 2/5 1-3 小时 新手友好度 78/100
stellar/stellar-cli#2773 ·
维护者通常 1 天内回复
查看 stellar/stellar-cli 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 90/100
chroma-core/chroma#7879 ·
维护者通常 1 天内回复
-
priority middle
难度 1/5 1 小时以内 新手友好度 72/100
KATO-Hiro/AtCoderClans#12838 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复