From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:400c:c09::22d; helo=mail-wm0-x22d.google.com; envelope-from=leif.lindholm@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wm0-x22d.google.com (mail-wm0-x22d.google.com [IPv6:2a00:1450:400c:c09::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 33CA420352611 for ; Tue, 24 Oct 2017 07:40:34 -0700 (PDT) Received: by mail-wm0-x22d.google.com with SMTP id u138so16200478wmu.5 for ; Tue, 24 Oct 2017 07:44:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=hTq+zAtIJfxDQXSmlbLbdVcodMk3DK9MSylWjdOC9ng=; b=NN0O8oXIMzm8qgb5BEj2/P7kG2p56P5/Ax5NAh+Pj+Fn8+htdz7M+6gAYb4K+a0mMg f8iFhgTnM7kyvLPexupcFm+33BjUN/bDPh9KTk7p8S6UbqdgHJ2KSQDlARoNhtG3Iro4 rOZlIOddwsVpwLVl0J+xLMLz0fJ5U1wDbxyPo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=hTq+zAtIJfxDQXSmlbLbdVcodMk3DK9MSylWjdOC9ng=; b=cjeMGCRPF5O/jOnlR3jaX4wccRNBS5t7Ic42o9du9b6G1+ceXrU8IQcnDBcZO9zlMQ c2ARFcDdKpOQuDwoEu+E2Bt4t/pfPP1FZvJ6y3Gjgwv/vlo6p/8d9qxKTdYn1bKJYhyL VxztS8acIIFIRc0KDcu7677tFyvirW9LZIzfrjHTiC00b+41vaq4R2a/vFss0aOgCVq+ dMeoA6Xz5HIYB6O+dozNALexHlIqLxTlc2JYV3zbawVdQAuzTjFv/qkW7tsQePey0ZMD 7lxOhJI2dT4R1e/EOkq01HqjjRNyShZppHPboRJzIjepbPJepowgtMbrILSBYZBGmR+c ffZg== X-Gm-Message-State: AMCzsaVhOCI/stkeN5KPyPYQiDG9jcmQ8opZspY3Gy1B7nt4YcCL7D5k K6kgHCBiJKo2m7JFqQnZa0xmpg== X-Google-Smtp-Source: ABhQp+TA75v7UMH99hRcEJr8NDGm5bXaG1dtJ3o4JqzfzK3iLPDD6JDN8igl+Op42hEMyu5KHTW97g== X-Received: by 10.28.67.133 with SMTP id q127mr9067336wma.71.1508856257475; Tue, 24 Oct 2017 07:44:17 -0700 (PDT) Received: from bivouac.eciton.net (bivouac.eciton.net. [2a00:1098:0:86:1000:23:0:2]) by smtp.gmail.com with ESMTPSA id j2sm510879wrj.82.2017.10.24.07.44.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 24 Oct 2017 07:44:16 -0700 (PDT) Date: Tue, 24 Oct 2017 15:44:14 +0100 From: Leif Lindholm To: Laszlo Ersek Cc: edk2-devel@lists.01.org, daniel.thompson@linaro.org, Ard Biesheuvel , Siyuan Fu , Jiaxin Wu Message-ID: <20171024144414.rlwaygmqsirgovlh@bivouac.eciton.net> References: <20171021131049.23844-1-ard.biesheuvel@linaro.org> <0f440c7d-f590-57c1-9f34-f9c8a54c81d6@redhat.com> <20171024123605.mpcyaemq55s6v7e2@bivouac.eciton.net> MIME-Version: 1.0 In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Subject: Re: [RFC PATCH] ArmPkg: add driver to add distro installer HTTP boot options X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Oct 2017 14:40:35 -0000 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Oct 24, 2017 at 03:32:51PM +0200, Laszlo Ersek wrote: > > Convenience. And given that I only noticed yesterday that the boot > > fails on HTTP redirects, of somewhat restricted value. > > > > Is that an official policy decision, or just a restriction of the > > implementation? > > Hm, I'm unsure; the following seems to imply that HttpBootDxe intends to handle redirects: > > if (HttpBootIsHttpRedirectStatusCode (HttpMessage->Data.Response->StatusCode)) { > // > // Server indicates the resource has been redirected to a different URL > // according to the section 6.4 of RFC7231 and the RFC 7538. > // Display the redirect information on the screen. > // > HttpHeader = HttpFindHeader ( > HttpMessage->HeaderCount, > HttpMessage->Headers, > HTTP_HEADER_LOCATION > ); > if (HttpHeader != NULL) { > Print (L"\n HTTP ERROR: Resource Redirected.\n New Location: %a\n", HttpHeader->FieldValue); > } > > Can you perhaps capture a packet trace and discuss it with Siyuan > and Jiaxin? Perhaps the server returns a status code that is not > handled by HttpBootDxe right now. Oh, it's explicitly printed as a 302 (Found), detected by HttpBootDxe/HttpBootSupport.c:HttpBootPrintErrorMessage(). See https://www.mail-archive.com/edk2-devel@lists.01.org/msg27819.html But yes, I should have cc:d Siyuan and Jiaxin (and have now done so). Can you comment? Regards, Leif