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 小時 新手友好度 79/100
維護者通常 4 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
pimutils/vdirsyncer#1242 ·
-
backlog
難度 2/5 1-3 小時 新手友好度 78/100
sagemathinc/sagebrush#2768 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 82/100
vllm-project/vllm-ascend#23791 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 78/100
briandconnelly/context-audit#33 ·
維護者通常 1 天內回覆