A missing configured encryption key leaves a newly created cloud project after push fails
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start by tracing push_projects and the project/config manager flow that creates a cloud project and saves its cloud-id; then inspect where encrypted files are prepared and the configured key path is opened. Add a regression test for a first push with a deleted key file, using the real managers and mocked API described in the issue. Done means the push fails without creating or linking a cloud project, while a successful configured-key push still works.
由索引模型根据 Issue 内容生成。
描述
Observed
A new local project with encrypted: true and an encryption-key-path pointing to a deleted file creates a cloud project and saves its cloud ID before the push discovers that the key cannot be opened. The push then fails without uploading its files, but leaves that project and the local/cloud link behind.
Reproduced on master at 3842533 using real push/project/config managers, a fake filesystem, and a mocked successful API. projects.create was called once, projects.update was never called, and the local config retained the returned cloud-id after push_projects returned False with a missing-file error.
Reproduction
- Create a local Python project without a cloud ID.
- Encrypt its files with a synthetic key and record the key path in its config.
- Delete or move the key file.
- Push the project without flags.
Required result
Reject the unusable key before creating or linking a cloud project, or undo those side effects when file preparation fails. Keep successful configured-key pushes unchanged and add a regression test for the failed first push.
Priority P2: the push reports its failure, and the leftover project/link can be removed or reused after restoring the key.
- 主要语言
- Python
- 星标
- 335
- 派生
- 172
- 平均合并
- 6 小时 54 分钟
- 30 天内合并 PR
- 37
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
QuantConnect/lean-cli 的其他 Issue
-
priority:P2
难度 2/5 1-3 小时 新手友好度 75/100
QuantConnect/lean-cli#792 ·
维护者通常 1 天内回复
-
priority:P2
难度 2/5 1-3 小时 新手友好度 74/100
QuantConnect/lean-cli#786 ·
维护者通常 1 天内回复
-
priority:P2
难度 2/5 1-3 小时 新手友好度 72/100
QuantConnect/lean-cli#785 ·
维护者通常 1 天内回复
-
A partially written live command result aborts polling with JSONDecodeError可能已有人在做 @pcbeingused333 于 3 天前认领。 未关闭priority:P2
难度 2/5 1-3 小时 新手友好度 72/100
QuantConnect/lean-cli#784 ·
维护者通常 1 天内回复
-
Container lookup failures during result polling are masked by UnboundLocalError可能已有人在做 @pcbeingused333 于 5 天前认领。 未关闭priority:P2
难度 2/5 1-3 小时 新手友好度 80/100
QuantConnect/lean-cli#783 ·
维护者通常 1 天内回复
查看 QuantConnect/lean-cli 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
pimutils/vdirsyncer#1242 ·
-
bug
难度 2/5 1-3 小时 新手友好度 82/100
open-webui/open-webui#35360 · 1 条评论 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 76/100
-
Suggest link: Destiny Verify (MIT zero-dependency pre-commit security, citation & link hygiene CLI)未关闭
难度 1/5 1 小时以内 新手友好度 68/100
-
bug
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复