Re: [Tools-discuss] Xml2rfc web service at https://xml2rfc.tools.ietf.org/experimental.html does not do v3 plaintext

Henrik Levkowetz <henrik@levkowetz.com> Sat, 26 October 2019 17:57 UTC

Return-Path: <henrik@levkowetz.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 0F7BA1200D5 for <tools-discuss@ietfa.amsl.com>; Sat, 26 Oct 2019 10:57:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.096
X-Spam-Level:
X-Spam-Status: No, score=-1.096 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, T_SPF_PERMERROR=0.01] autolearn=no autolearn_force=no
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 jOtGsedCqxkn for <tools-discuss@ietfa.amsl.com>; Sat, 26 Oct 2019 10:57:54 -0700 (PDT)
Received: from zinfandel.tools.ietf.org (unknown [IPv6:2001:1890:126c::1:2a]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8ACEA1200B6 for <tools-discuss@ietf.org>; Sat, 26 Oct 2019 10:57:54 -0700 (PDT)
Received: from h-202-242.a357.priv.bahnhof.se ([158.174.202.242]:55138 helo=tannat.localdomain) by zinfandel.tools.ietf.org with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <henrik@levkowetz.com>) id 1iOQJg-0004VD-Jo; Sat, 26 Oct 2019 10:57:53 -0700
To: Carsten Bormann <cabo@tzi.org>, "tools-discuss@ietf.org" <tools-discuss@ietf.org>
References: <31DB1003-A913-4F31-9C41-50C0636382F6@tzi.org> <300D8DE9-7372-4978-ABB9-64809BBCBC65@tzi.org> <4e926c4e-d47b-94e5-0874-87b8ec242d8a@levkowetz.com>
From: Henrik Levkowetz <henrik@levkowetz.com>
Message-ID: <3e5898d6-b220-a3e3-6aff-fd43305231bf@levkowetz.com>
Date: Sat, 26 Oct 2019 19:57:24 +0200
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
MIME-Version: 1.0
In-Reply-To: <4e926c4e-d47b-94e5-0874-87b8ec242d8a@levkowetz.com>
Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="qKcuDmM7mFNJ6H6nVNBmCIDeBFeFvDJC7"
X-SA-Exim-Connect-IP: 158.174.202.242
X-SA-Exim-Rcpt-To: tools-discuss@ietf.org, cabo@tzi.org
X-SA-Exim-Mail-From: henrik@levkowetz.com
X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000)
X-SA-Exim-Scanned: Yes (on zinfandel.tools.ietf.org)
X-Clacks-Overhead: GNU Terry Pratchett
Archived-At: <https://mailarchive.ietf.org/arch/msg/tools-discuss/jbFVutt1ZoR2BzXu5EZ8_69D0Is>
Subject: Re: [Tools-discuss] Xml2rfc web service at https://xml2rfc.tools.ietf.org/experimental.html does not do v3 plaintext
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: Sat, 26 Oct 2019 17:57:56 -0000

Hi Carsten,

Ok, I've put a temporary fix in place for the web service.  A more
permanent fix that deals correctly with ascii-only log output media
will be part of the next release.


	Henrik

On 2019-10-26 19:01, Henrik Levkowetz wrote:
> Hi Carsten,
> 
> This is baffling.  If I download this file and run it locally, I don't get
> any errors, but the web service should be using the latest release, so I
> wonder where the difference is.  I'll dig further.
> 
> 	Henrik
> 
> On 2019-10-26 18:24, Carsten Bormann wrote:
>> On Oct 26, 2019, at 18:03, Carsten Bormann <cabo@tzi.org>; wrote:
>>> 
>>> FYI: I cannot make the xml2rfc web service at https://xml2rfc.tools.ietf.org/experimental.html work for v3 plaintext.  It complains that it cannot encode a character in ascii, but I didn’t specify ASCII, I asked for plaintext.
>> 
>> Ha, the tail of the traceback is:
>> 
>>  File "/usr/local/lib/python2.7/dist-packages/xml2rfc/util/postal.py", line 179, in get_normalized_address_info
>>     writer.note(x, "Postal address check failed for author %s." % full_author_name(author, latin))
>>   File "/usr/local/lib/python2.7/dist-packages/xml2rfc/writers/base.py", line 1735, in note
>>     self.log(self.msg(e, label, text))
>>   File "/usr/local/lib/python2.7/dist-packages/xml2rfc/writers/base.py", line 1677, in log
>>     xml2rfc.log.write(msg)
>>   File "/usr/local/lib/python2.7/dist-packages/xml2rfc/log.py", line 28, in write
>>     write_err.write(' '.join(args))
>> UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in position 95: ordinal not in range(128)
>> 
>> So it wanted to complain in ASCII about an author, but couldn’t, because the author isn’t an ASCII person.
>> 
>> (BTW, I’m still trying to figure out the postal address messages for the ASCII authors.)
>> 
>> Source file: https://tools.ietf.org/id/draft-ietf-core-resource-directory-23.xml
> 
>   
> 
> 
> 
> ___________________________________________________________
> 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
>