A missing configured encryption key leaves a newly created cloud project after push fails
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 73/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Python
- Star
- 335
- Fork
- 172
- Merge trung bình
- 6 giờ 54 phút
- Pull request đã merge (30 ngày)
- 37
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của QuantConnect/lean-cli
-
priority:P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
QuantConnect/lean-cli#792 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
priority:P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
QuantConnect/lean-cli#786 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
priority:P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
QuantConnect/lean-cli#785 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
A partially written live command result aborts polling with JSONDecodeErrorCó thể đã có người làm @pcbeingused333 đã nhận 3 ngày trước. Đang mởpriority:P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
QuantConnect/lean-cli#784 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Container lookup failures during result polling are masked by UnboundLocalErrorCó thể đã có người làm @pcbeingused333 đã nhận 5 ngày trước. Đang mởpriority:P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
QuantConnect/lean-cli#783 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của QuantConnect/lean-cli
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
pimutils/vdirsyncer#1242 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
open-webui/open-webui#35360 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
Suggest link: Destiny Verify (MIT zero-dependency pre-commit security, citation & link hygiene CLI)Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày