Skip to main content

v0.0.61-patch.1

Summary

This patch release addresses an issue affecting sign-in with Internet Identity when using delegation origin with custom domains.

[!IMPORTANT]
Note: This patch addresses a specific edge case (custom domain derivation origins for Internet Identity). Since most users are unaffected, the update is not auto-propagated. If you're experiencing this issue, you can apply the patch manually using the Juno CLI.

The root cause of the issue is unclear - something has changed but no one knows what. The issue happens likely because satellites did not support HEAD requests, though it has always been like that. Support was planned but just not yet delivered. This patch allows HEAD request to satellites, basically just adding a condition to an if statement that accepted GET only.

// Was:
pub fn http_request(
    HttpRequest {
        method,
    }: HttpRequest,
    storage_state: &impl StorageStateStrategy,
    certificate: &impl StorageCertificateStrategy,
) -> HttpResponse {
    if method != "GET" {
        return error_response(RESPONSE_STATUS_CODE_405, "Method Not Allowed.".to_string());
    }
    
// Patch:
pub fn http_request(
    HttpRequest {
        method,
    }: HttpRequest,
    storage_state: &impl StorageStateStrategy,
    certificate: &impl StorageCertificateStrategy,
) -> HttpResponse {
    if method != "GET" && method != "HEAD" {
        return error_response(RESPONSE_STATUS_CODE_405, "Method Not Allowed.".to_string());
    }

[!NOTE]
Patch was tested manually. Effective implementation and tests in #2564

Overview

ModuleVersionBreaking changes
Satellitev0.1.7
Sputnikv0.1.8️ ️
CratesVersionBreaking changes
junobuild-cdn0.4.1-patch.2
junobuild-satellite0.3.1-patch.1
junobuild-storage0.4.1-patch.1️️