From 5b19ff214c11e710f77a42145bd23449e62e3162 Mon Sep 17 00:00:00 2001 From: mraszyk <31483726+mraszyk@users.noreply.github.com> Date: Wed, 30 Oct 2024 18:02:57 +0100 Subject: [PATCH 1/2] chore(deps): bump http-proxy-middleware in /docusaurus (#355) Bumps [http-proxy-middleware](https://github.com/chimurai/http-proxy-middleware) from 2.0.6 to 2.0.7. - [Release notes](https://github.com/chimurai/http-proxy-middleware/releases) - [Changelog](https://github.com/chimurai/http-proxy-middleware/blob/v2.0.7/CHANGELOG.md) - [Commits](https://github.com/chimurai/http-proxy-middleware/compare/v2.0.6...v2.0.7) --- updated-dependencies: - dependency-name: http-proxy-middleware dependency-type: indirect ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- docusaurus/package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docusaurus/package-lock.json b/docusaurus/package-lock.json index 56db89a9..f48909f1 100644 --- a/docusaurus/package-lock.json +++ b/docusaurus/package-lock.json @@ -7667,9 +7667,9 @@ } }, "node_modules/http-proxy-middleware": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.6.tgz", - "integrity": "sha512-ya/UeJ6HVBYxrgYotAZo1KvPWlgB48kUJLDePFeneHsVujFaW5WNj2NgWCAE//B1Dl02BIfYlpNgBy8Kf8Rjmw==", + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.7.tgz", + "integrity": "sha512-fgVY8AV7qU7z/MmXJ/rxwbrtQH4jBQ9m7kp3llF0liB7glmFeVZFBepQb32T3y8n8k2+AEYuMPCpinYW+/CuRA==", "dependencies": { "@types/http-proxy": "^1.17.8", "http-proxy": "^1.18.1", From e477c6afec8a68b725a76938764cf4650e4ab2e5 Mon Sep 17 00:00:00 2001 From: mraszyk <31483726+mraszyk@users.noreply.github.com> Date: Fri, 1 Nov 2024 09:25:30 +0100 Subject: [PATCH 2/2] fix: specify effective canister id for install_chunked_code (#352) --- spec/index.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spec/index.md b/spec/index.md index c195c77b..74069d1f 100644 --- a/spec/index.md +++ b/spec/index.md @@ -931,6 +931,8 @@ It must be contained in the canister ranges of a subnet, otherwise the correspon - If the call is to the `provisional_create_canister_with_cycles` method, then any principal can be used as the effective canister id for this call. + - If the call is to the `install_chunked_code` method and the `arg` is a Candid-encoded record with a `target_canister` field of type `principal`, then the effective canister id must be that principal. + - Otherwise, if the `arg` is a Candid-encoded record with a `canister_id` field of type `principal`, then the effective canister id must be that principal. - Otherwise, the call is rejected by the system independently of the effective canister id. @@ -3624,6 +3626,7 @@ delegation_targets(D) A `Request` has an effective canister id according to the rules in [Effective canister id](#http-effective-canister-id): ``` is_effective_canister_id(Request {canister_id = ic_principal, method = provisional_create_canister_with_cycles, …}, p) +is_effective_canister_id(Request {canister_id = ic_principal, method = install_chunked_code, arg = candid({target_canister = p, …}), …}, p) is_effective_canister_id(Request {canister_id = ic_principal, arg = candid({canister_id = p, …}), …}, p) is_effective_canister_id(Request {canister_id = p, …}, p), if p ≠ ic_principal ```