From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.devel Subject: Re: Bug in url-retrieve-synchronously from url.el on redirect Date: Sat, 11 Jul 2020 03:25:20 +0700 Message-ID: References: <08fad79e-9b6b-6ff4-66fd-c32fdf5b7189@grinta.net> <8d25cbf6-5cc8-25d5-89bc-5a7a74d477c4@grinta.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18350"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Emacs developers To: Daniele Nicolodi Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jul 10 22:26:19 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jtzb9-0004gC-4n for ged-emacs-devel@m.gmane-mx.org; Fri, 10 Jul 2020 22:26:19 +0200 Original-Received: from localhost ([::1]:59268 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jtzb8-00075C-1f for ged-emacs-devel@m.gmane-mx.org; Fri, 10 Jul 2020 16:26:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41036) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jtzaR-0006eV-Cg for emacs-devel@gnu.org; Fri, 10 Jul 2020 16:25:35 -0400 Original-Received: from mail-vs1-xe2d.google.com ([2607:f8b0:4864:20::e2d]:39099) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jtzaP-0003Sl-8M for emacs-devel@gnu.org; Fri, 10 Jul 2020 16:25:35 -0400 Original-Received: by mail-vs1-xe2d.google.com with SMTP id a17so3665478vsq.6 for ; Fri, 10 Jul 2020 13:25:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=/IIKmdjVNcC2kMsFBOb9rRY04ia/5i4jLRO4GRIlstY=; b=oIuXDTS8fZXAiryqUMcvYGeuevbF++xoQ4Jf0C5sLEpE6Z56vXlkFW0YUWXL9JTKmp j5Anax85DGlF+YLOx5ylq2AJ2mmsAJhB/XXiopySoqhTeGhxgDfgBtOsNCJV7a1GRPrv 2hOwv21EpnF9UCdASBCurtFTEHpmfLcE2XKQcLYdVlUg5yua2vwyCMUA50ibyqd9MU5g 5Hzk7JnQm/Tpc0R3tKGq7EDrprsRn19l3Rh0un2LoUPfJt9DIo8OTLiVNlHoM2Pql3m6 rodTwfZa8OqTUVZQZagfRejNlg+lTvfDp8v+7G2A0tKJwSA1YY5wq9i9Tvk/fgAMxAv6 RodQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=/IIKmdjVNcC2kMsFBOb9rRY04ia/5i4jLRO4GRIlstY=; b=muuRXFjgqdkL4+WuZ7fS2CT3cw3ilO9X73s/99kypfTNIcePOz64ffh0JtW5iQxcCL oUvyxGf0EGHgqu8jTb2YZVq6DILER5cx+3/mzTLRBxtZiReY7d35wNzxVZmWge7VwR7n WIkqOqOHuvG5covCLN+5+BhuqTQ/oYXKW1MZMMeFHscM8L4u7qS+JrTFCb+GXP1iv56l S1k+7UvMqHx8bu+Ts2tnI0iDLXIM//4p9vBc8Jv60mMKGDbmEiKDZP2YG1euHJRU154i t3znFq9xj1r+rzsQWJ9MLnAjoPSFQcFE6vz13FuEBHQknSOhq4upLpYKP0moI7Gn2nMz pu3Q== X-Gm-Message-State: AOAM531LQpZzEPON121uAtknOVBhxVF+FTxnMj7gc0XWcgZ5QH0aW2YU vfC5u3J5jGZMgguG/gRiqXxYEAf34s8419ogWNTyhw4q X-Google-Smtp-Source: ABdhPJzqHz2yZYj+vCjraLhqjIzEjuZh/+hZcBfyWIgPawv0pUH5pBS2C65FH+A0aV+6qFkI/SguFVwWSRC3Bvcx5gM= X-Received: by 2002:a67:1382:: with SMTP id 124mr51827656vst.75.1594412732131; Fri, 10 Jul 2020 13:25:32 -0700 (PDT) In-Reply-To: <8d25cbf6-5cc8-25d5-89bc-5a7a74d477c4@grinta.net> Received-SPF: pass client-ip=2607:f8b0:4864:20::e2d; envelope-from=yurivkhan@gmail.com; helo=mail-vs1-xe2d.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:252839 Archived-At: On Sat, 11 Jul 2020 at 02:43, Daniele Nicolodi wrote: > As far as I understand the RFCs (and being wrong before, I may be wrong > again) do not allow for < > quoting either. Why does url-http.el strip > them? Why does it break the URI at the first space if spaces are not > allowed? I cannot answer that, maybe someone who is knowledgeable about uri-http.el chimes in. RFC 7231 allows clients to attempt to DTRT with invalid Location URIs in any way they deem appropriate; you could argue for a different recovery heuristic. Me, I=E2=80=99d rather have things break loudly on each violation, so that it does not go unnoticed for too long. Postel=E2=80=99s Razor is how we got HTML in its current shape.