Re: [Tools-discuss] Why does xml2rfc download over HTTP?

Richard Barnes <richard.barnes@gmail.com> Fri, 01 February 2019 22:41 UTC

Return-Path: <richard.barnes@gmail.com>
X-Original-To: tools-discuss@ietfa.amsl.com
Delivered-To: tools-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6E607130ECE for <tools-discuss@ietfa.amsl.com>; Fri, 1 Feb 2019 14:41:14 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.998
X-Spam-Level:
X-Spam-Status: No, score=-1.998 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8eSDjUYBHdGc for <tools-discuss@ietfa.amsl.com>; Fri, 1 Feb 2019 14:41:11 -0800 (PST)
Received: from mail-vs1-xe2c.google.com (mail-vs1-xe2c.google.com [IPv6:2607:f8b0:4864:20::e2c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B9B9E130EBE for <tools-discuss@ietf.org>; Fri, 1 Feb 2019 14:41:11 -0800 (PST)
Received: by mail-vs1-xe2c.google.com with SMTP id z3so5208018vsf.7 for <tools-discuss@ietf.org>; Fri, 01 Feb 2019 14:41:11 -0800 (PST)
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; bh=ygXyhGJgTBgBmNVmznsIMfji1pE6FblcYP3Xa+tjRl0=; b=YFIE6KYQan+g/MiWXzU6AjCV5tuIGoMd+XIaHzXWaSqObhqjKuihmL9QPGzsyr0dSN FE64Q6E2jTUg2oaCbKs0XkhVM7UQFtgxyJkmWYBBkX/tXWGsuIjif+RaRUVJHmaaKoWQ TmmA5jtln7NyXmigF6UAkd4ID8F/A7mUDbGgtIkka4AuUpkqJlhip8S6BQJUAE6dLMHh DAU1G+hseyo9UuNzauG0Vs37WFoOkf+GAVREONAglDgelCllEalZkE0xp8Qjd1xFYq6l rq+oDHbHUe7oIzh7wXBeJt8R9rj+R+++nioC170S/GMPhJm3+PrEzypEorGrHfoHyNPd QGwA==
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; bh=ygXyhGJgTBgBmNVmznsIMfji1pE6FblcYP3Xa+tjRl0=; b=f3EUJWo/KXKBB8h07HvqW/bVD9ak4gieqaJ1kiukNSw9jdkd9gXUeuGdXg7gYTJdvo o1uF7i1r2z9eTKxku+4a+OdeWlPUjzv0ctNvcq9Leuu7TcTeLsFLpy8vV9s2D9wvzJyS 6n4lJ4EWf0fFjdyOeEETiiC8G7L66E28Ftnz4z9jwXlYza0SZujnFEea2hBPPzOcgNjU GTmfb/qmuxnBJ1bXkd1+wsJMIBnmYINxCOGRy1eAA3+dNV6jU3OMVyK8sAAFyxNnl+Wr xG6sn5nDi0H1jahMA5IhPtFtwg0OOPV8ILgMBFQhTaq1u4n9peGs1qjHXkhxWcvYCJRm OMTg==
X-Gm-Message-State: AJcUukdguacb0c+qk/UZEdq6EVA5Lnbjln4e+/RKdsHuKgY/YOxV8UOT IWtyHYDm3lJ+yLCiu89CjM9ZZlXQW06mXQOrOg2Db6/p
X-Google-Smtp-Source: ALg8bN52LsuVFHCzFZEKHaSav4aitjVMxFEZLv1ds8AsCZzVNEauS8tmHpe/EG5rRioSDOvGh3Mpazr/89P43Si4fKs=
X-Received: by 2002:a67:e15e:: with SMTP id o30mr18437250vsl.66.1549060870526; Fri, 01 Feb 2019 14:41:10 -0800 (PST)
MIME-Version: 1.0
References: <CABcZeBPC8SsaFpRDarRDyHX0V6tW56QC_J56ziKAz_ya9fmy4A@mail.gmail.com>
In-Reply-To: <CABcZeBPC8SsaFpRDarRDyHX0V6tW56QC_J56ziKAz_ya9fmy4A@mail.gmail.com>
From: Richard Barnes <richard.barnes@gmail.com>
Date: Fri, 01 Feb 2019 17:40:54 -0500
Message-ID: <CACB24MtLzNKNKwdNQbuna8HDbZR1NRuUJFsoRWYHUM+T_s6Rpw@mail.gmail.com>
To: Eric Rescorla <ekr@rtfm.com>
Cc: tools-discuss <tools-discuss@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000ec5e7d0580dcd601"
Archived-At: <https://mailarchive.ietf.org/arch/msg/tools-discuss/cuhpmpwK1SvB8dhMHlXsKDdwFk0>
Subject: Re: [Tools-discuss] Why does xml2rfc download over HTTP?
X-BeenThere: tools-discuss@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: IETF Tools Discussion <tools-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tools-discuss>, <mailto:tools-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tools-discuss/>
List-Post: <mailto:tools-discuss@ietf.org>
List-Help: <mailto:tools-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tools-discuss>, <mailto:tools-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 01 Feb 2019 22:41:14 -0000

In particular, this seems to be the patch necessary to resolve the issue:

Index: trunk/cli/xml2rfc/parser.py
===================================================================
--- trunk/cli/xml2rfc/parser.py (revision 2965)
+++ trunk/cli/xml2rfc/parser.py (working copy)
@@ -53,8 +53,6 @@
                  no_network=None, network_locs= [
                      'https://xml2rfc.ietf.org/public/rfc/',
                      'https://xml2rfc.tools.ietf.org/public/rfc/',
-                     'http://xml2rfc.ietf.org/public/rfc/',
-                     'http://xml2rfc.tools.ietf.org/public/rfc/',
                  ],
                  rfc_number=None, options=base.default_options):
         self.quiet = quiet if quiet != None else options.quiet

On Fri, Feb 1, 2019 at 5:08 PM Eric Rescorla <ekr@rtfm.com> wrote:

> Hi folks,
>
> I recently went to build a draft and got a pile of errors about how the
> references didn't parse. Digging into things a bit, I discovered that the
> reference was the page from a captive portal on one of my flights. I'm not
> sure how this happened, but looking at xml2rfc, it appears that it tries
> HTTPS URIs and then HTTP URIs, which seems like it's going to have the
> wrong outcome in the situation where the captive portal blocks HTTPS and
> intercepts HTTP.
>
> Is there a good reason to continue to allow HTTP URIs in the tool?
>
> -Ekr
>
>
>
>
> ___________________________________________________________
> Tools-discuss mailing list
> Tools-discuss@ietf.org
> https://www.ietf.org/mailman/listinfo/tools-discuss
>
> Please report datatracker.ietf.org and mailarchive.ietf.org
> bugs at http://tools.ietf.org/tools/ietfdb
> or send email to datatracker-project@ietf.org
>
> Please report tools.ietf.org bugs at
> http://tools.ietf.org/tools/issues
> or send email to webmaster@tools.ietf.org
>