A missing configured encryption key leaves a newly created cloud project after push fails

オープン
#765 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
73/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python
領域
cli, cloud

調査の方向性

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 の本文から書いたものです。

説明

priority:P2

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

  1. Create a local Python project without a cloud ID.
  2. Encrypt its files with a synthetic key and record the key path in its config.
  3. Delete or move the key file.
  4. 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分
マージ済み PR(30日)
37

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

QuantConnect/lean-cli のほかの issue

QuantConnect/lean-cli の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。