From mboxrd@z Thu Jan  1 00:00:00 1970
From: Tobias Geerinckx-Rice <me@tobias.gr>
Subject: bug#35395: GUIX website redirections are failing
Date: Tue, 23 Apr 2019 17:40:56 +0200
Message-ID: <875zr47mrb.fsf@nckx>
References: <20190423142900.ob7gkibb3grdsm4l@E15-2016.optimum.net>
Mime-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
	micalg=pgp-sha512; protocol="application/pgp-signature"
Return-path: <bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org>
Received: from eggs.gnu.org ([209.51.188.92]:36398)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1hIxYZ-0003xp-Ei
	for bug-guix@gnu.org; Tue, 23 Apr 2019 11:42:04 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1hIxYY-0008Kl-CQ
	for bug-guix@gnu.org; Tue, 23 Apr 2019 11:42:03 -0400
Received: from debbugs.gnu.org ([209.51.188.43]:40583)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
	id 1hIxYY-0008Kf-8M
	for bug-guix@gnu.org; Tue, 23 Apr 2019 11:42:02 -0400
Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
	(envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1hIxYY-0002Or-4w
	for bug-guix@gnu.org; Tue, 23 Apr 2019 11:42:02 -0400
Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-Message-ID: <handler.35395.B35395.15560340689161@debbugs.gnu.org>
In-reply-to: <20190423142900.ob7gkibb3grdsm4l@E15-2016.optimum.net>
List-Id: Bug reports for GNU Guix <bug-guix.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-guix>,
	<mailto:bug-guix-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-guix/>
List-Post: <mailto:bug-guix@gnu.org>
List-Help: <mailto:bug-guix-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-guix>,
	<mailto:bug-guix-request@gnu.org?subject=subscribe>
Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org
Sender: "bug-Guix" <bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org>
To: 35395@debbugs.gnu.org

--=-=-=
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: quoted-printable

Boruch,

Boruch Baum wrote:
> The guix homepage[1] links to other pages[2][3] that claim=20
> "Redirecting
> to the new page location... ", but they don't, at least not for=20
> me using
> emacs-w3m and firefox-esr v60.

The links aren't broken, but implemented in a very=E2=80=A6 special way:

  ~ =CE=BB curl=20
  https://www.gnu.org/software/guix/manual/html_node/Features.html
  <!DOCTYPE html>
  <html lang=3D"en">
    <head>
      <meta charset=3D"UTF-8" />
      <title>Page has moved! =E2=80=94 GNU Guix</title>
      <noscript><meta http-equiv=3D"refresh" content=3D"0;=20
      url=3D../en/html_node/Features.html"></noscript>
    </head>
    <body onload=3D"window.location =3D=20
    '../en/html_node/Features.html';">
    [=E2=80=A6]

I.e. inject arbitrary code into the user's browser and if it=20
catches us, fall back to http-equiv hackery.  Not good!

The fix is to send out real (HTTP 307/302) redirections, but the=20
problem might be that gnu.org won't let us.

Kind regards,

T G-R

> This is also the case from the guix 'help' page[4] link to the=20
> system
> manual[5]. Other links[6][7] on that page do work.
>
> references:
> [1] https://www.gnu.org/software/guix/
> [2]=20
> https://www.gnu.org/software/guix/manual/html_node/Features.html
> [3]=20
> https://www.gnu.org/software/guix/manual/html_node/Using-the-Configuratio=
n-System.html
> [4] https://www.gnu.org/software/guix/help/
> [5]=20
> https://www.gnu.org/software/guix/manual/html_node/GNU-Distribution.html
> [6] https://www.gnu.org/manual/
> [7] https://www.gnu.org/software/guix/manual/

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQT12iAyS4c9C3o4dnINsP+IT1VteQUCXL8yCAAKCRANsP+IT1Vt
eRShAP43OOpWxkIl3CrSDLIC0tZhHwm5xS0lhaQv6ez1u2YOoAEAkbY5Jm9E59yq
uCSmZ9t8509gaY+88ie18Q7oxjapDQE=
=8ysC
-----END PGP SIGNATURE-----
--=-=-=--