A missing configured encryption key leaves a newly created cloud project after push fails
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 73/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Python
- Stelle
- 335
- Fork
- 172
- Merge medio
- 6h 54m
- PR unite (30g)
- 37
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di QuantConnect/lean-cli
-
priority:P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
QuantConnect/lean-cli#792 ·
I maintainer di solito rispondono entro 1 giorno
-
priority:P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
QuantConnect/lean-cli#786 ·
I maintainer di solito rispondono entro 1 giorno
-
priority:P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
QuantConnect/lean-cli#785 ·
I maintainer di solito rispondono entro 1 giorno
-
A partially written live command result aborts polling with JSONDecodeErrorForse già presa @pcbeingused333 l’ha presa 3 giorni fa. Apertapriority:P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
QuantConnect/lean-cli#784 ·
I maintainer di solito rispondono entro 1 giorno
-
Container lookup failures during result polling are masked by UnboundLocalErrorForse già presa @pcbeingused333 l’ha presa 5 giorni fa. Apertapriority:P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
QuantConnect/lean-cli#783 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di QuantConnect/lean-cli
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
pimutils/vdirsyncer#1242 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
open-webui/open-webui#35360 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
Suggest link: Destiny Verify (MIT zero-dependency pre-commit security, citation & link hygiene CLI)Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 68/100
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno