Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

icp sync requires caller to be a controller?

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

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
56/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
rust
領域
cli

調査の方向性

Start by reproducing icp sync frontend with the reported principal, then read the sync and canister status authorization paths in icp-cli and compare them with the list_authorized call. Check the behavior against icp-cli 0.2.6 or earlier. Done means an authorized principal can sync successfully and the regression is covered by a test.

索引モデルが issue の本文から書いたものです。

説明

With latest icp-cli and static-site, I get the following error:

$ icp sync frontend
Error: direct update call failed: The replica returned a rejection error: reject code CanisterError, reject message Caller x3s26-g4umy-l7jhv-vm3sh-qnz2o-icrdk-cnaw2-zp2xl-yppb6-l6pok-gqe is not allowed to read the canister status, error code Some("IC0542")

Caused by:
    The replica returned a rejection error: reject code CanisterError, reject message Caller x3s26-g4umy-l7jhv-vm3sh-qnz2o-icrdk-cnaw2-zp2xl-yppb6-l6pok-gqe is not allowed to read the canister status, error code Some("IC0542")

However, this principal is clearly authorized:

$ icp canister call frontend list_authorized '()'
(vec { principal "x3s26-g4umy-l7jhv-vm3sh-qnz2o-icrdk-cnaw2-zp2xl-yppb6-l6pok-gqe" })

This seems to defeat the purpose of supporting authorized principals in static-site. Previous versions, at least icp-cli 0.2.6 or earlier, didn't have this issue.

主要言語
Rust
スター
116
フォーク
17
平均マージ
22時間 11分
マージ済み PR(30日)
28

環境構築

はじめの一歩

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

dfinity/icp-cli のほかの issue

dfinity/icp-cli の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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