Re: draft-ietf-httpbis-header-structure-15.txt, 4.1.6. Serializing a String

Mark Nottingham <mnot@mnot.net> Wed, 19 February 2020 01:59 UTC

Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E50CC12088C for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 18 Feb 2020 17:59:48 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.751
X-Spam-Level:
X-Spam-Status: No, score=-2.751 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, MAILING_LIST_MULTI=-1, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=mnot.net header.b=BWhhAWCT; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=cOwF7TdD
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 OTP84tp2RC7L for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 18 Feb 2020 17:59:47 -0800 (PST)
Received: from lyra.w3.org (lyra.w3.org [128.30.52.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DE31512088A for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 18 Feb 2020 17:59:46 -0800 (PST)
Received: from lists by lyra.w3.org with local (Exim 4.92) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1j4Ebh-0002Oe-6N for ietf-http-wg-dist@listhub.w3.org; Wed, 19 Feb 2020 01:56:57 +0000
Resent-Date: Wed, 19 Feb 2020 01:56:57 +0000
Resent-Message-Id: <E1j4Ebh-0002Oe-6N@lyra.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by lyra.w3.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <mnot@mnot.net>) id 1j4Eba-0002Nt-7c for ietf-http-wg@listhub.w3.org; Wed, 19 Feb 2020 01:56:50 +0000
Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <mnot@mnot.net>) id 1j4EbX-0003Cw-UE for ietf-http-wg@w3.org; Wed, 19 Feb 2020 01:56:49 +0000
Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id D44BC21FBF; Tue, 18 Feb 2020 20:56:34 -0500 (EST)
Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Tue, 18 Feb 2020 20:56:34 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mnot.net; h= content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; s=fm2; bh=n U5QjWo2JhApaOF7ftqoNaozr4DEfduxMd9rbGI19n8=; b=BWhhAWCTPeGVZgZu3 i2jirG6RW7HBas+5g4chv698TV83sFnXYRHRia8sInBDZzZVjAk7IX92nZjLD8vd N6L7NoJenNTWZY/Mi6ENuXVJs+ZLbaWmGMLMg/lf5LoLifwQeiUBKb2IaaEfgfPm auHTWiBKTz9H9c1NY8Zzxs2imYKz3RT6JzpzqXn9zlFETuOjWYkCxeWkZIiRSV4w RapjOQBZV0yi/4iBfr07EUSDpj/cF3Ix7K6LPZPdyYPG9/ghxav3c2AGM6Idf2mO mKqJ0pmQvhmOmG0DyMP2pYlvRBdK9rU0x5Wj61/FeC7rDDSLF0rqKs955mwiMF2b C7eag==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=nU5QjWo2JhApaOF7ftqoNaozr4DEfduxMd9rbGI19 n8=; b=cOwF7TdDN4QR3wUZJBkmkhJIbY9i6eScKt4T9Ib0R/S9qLxZR+DScJ2gB HGwMeFVuL+Zl/fzy3mKzTSeiBcFBtPjDEv0zzBYPlEUmq2YHhMK6NraCqen12Cf1 El108v6YoBrqmBRre68rfXwWMFDgldMizwQ/cJNGnyTIauwTyBzlVr9C/nL02SSw IKAr86SMTp5dSIxZhCFeab62rN0TqfyzbwWILY7cdUpTJTvkS7+ZMOUlDaJnWCLc cdyGBAKn/9CfeVBPz8iFAvxqmVZAdWdbAQyW7BxqMRSq9Ofdvmi7fSycPIKtu/N2 /34hz29nhPqiS+Kr2WZv7j4FhQ6ug==
X-ME-Sender: <xms:0ZVMXj7z8bguTAIUarpHrDXW1z6Ps9BW36sRr_vdzZbYoCxwt0zU1w>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrjeelgdefkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpegtggfuhfgjfffgkfhfvffosehtqhhmtdhhtddvnecuhfhrohhmpeforghrkhcu pfhothhtihhnghhhrghmuceomhhnohhtsehmnhhothdrnhgvtheqnecuffhomhgrihhnpe hivghtfhdrohhrghdpghhithhhuhgsrdgtohhmpdhmnhhothdrnhgvthenucfkphepuddu ledrudejrdduheekrddvhedunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomhepmhhnohhtsehmnhhothdrnhgvth
X-ME-Proxy: <xmx:0ZVMXqngErSo6jD7ZWmw4StrWfto5ib318xj94dWnj8uaa6-n057VA> <xmx:0ZVMXt4urEjS4eHmT6K4vsj9pm8Ak7EShuMat7SLjjqTTarW0jwe2Q> <xmx:0ZVMXj9egrX5OOXTwNRqz-qqHl6YjTn-QVhH_yb4PoToRRJqjDY1Iw> <xmx:0pVMXrKl0iydb0DiRpYIFMV9L_m7HwhCw0jxHo-inkRH2GkbL04Gsw>
Received: from macbook-pro.mnot.net (unknown [119.17.158.251]) by mail.messagingengine.com (Postfix) with ESMTPA id 2205B3060BD1; Tue, 18 Feb 2020 20:56:31 -0500 (EST)
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <20200218170813.8AAB4CA2E@welho-filter1.welho.com>
Date: Wed, 19 Feb 2020 12:56:27 +1100
Cc: HTTP Working Group <ietf-http-wg@w3.org>, Poul-Henning Kamp <phk@varnish-cache.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <3051B252-F018-45C9-A155-8804F2BD2C22@mnot.net>
References: <158028031175.4610.9085377324549619919@ietfa.amsl.com> <20200216173823.C7E9B45BF3@welho-filter4.welho.com> <952D5261-26B7-419E-8987-FA10125C63A4@mnot.net> <20200218170813.8AAB4CA2E@welho-filter1.welho.com>
To: Kari Hurtta <hurtta-ietf@elmme-mailer.org>
X-Mailer: Apple Mail (2.3608.60.0.2.5)
Received-SPF: pass client-ip=66.111.4.29; envelope-from=mnot@mnot.net; helo=out5-smtp.messagingengine.com
X-W3C-Hub-Spam-Status: No, score=-9.8
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_IRR=-3, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1j4EbX-0003Cw-UE ef24da0c69f34536613c533d405a28a5
X-Original-To: ietf-http-wg@w3.org
Subject: Re: draft-ietf-httpbis-header-structure-15.txt, 4.1.6. Serializing a String
Archived-At: <https://www.w3.org/mid/3051B252-F018-45C9-A155-8804F2BD2C22@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/37369
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <https://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On 19 Feb 2020, at 4:08 am, Kari Hurtta <hurtta-ietf@elmme-mailer.org> wrote:
> 
> Well, I disagree that this is ready.
> 
> 4.1.5.  Serializing a Decimal
> https://tools.ietf.org/html/draft-ietf-httpbis-header-structure-15#section-4.1.5
> 
> tries define rounding.
> 
> This means that input_decimal is NOT decimal as defined on
> 
> 3.3.2.  Decimals
> https://tools.ietf.org/html/draft-ietf-httpbis-header-structure-15#section-3.3.2
> 
> So that this is consistent
> 
> 
> 4.1.6.  Serializing a String
> https://tools.ietf.org/html/draft-ietf-httpbis-header-structure-15#section-4.1.6
> 
> 	
> input_string is NOT string as defined on
> 
> 3.3.3.  Strings
> https://tools.ietf.org/html/draft-ietf-httpbis-header-structure-15#section-3.3.3
> 
> 
> So let input_decimal to be some kind generic/abstract decimal number and
> therefore input_string to be some kind generic/abstract string.

See discussion and proposal at:
  https://github.com/httpwg/http-extensions/issues/1055


> Make this failure more explicit. For example:
> 
>  1.  Convert input_string into an ASCII string ascii_string; if
>      conversion fails, fail serialisation.
> 
>  2.  If ascii_string contains characters in the range %x00-1f or 
>      %x7f (i.e., is not in VCHAR or SP), fail serialisation.
> 
>  3.  Let output be an empty string.
> 
>  4.  Append DQUOTE to output.
> 
> 
>  5. For each character char in ascii_string:
> 
>     and so on

That makes sense; likewise for tokens and keys. I've added a note to deal with this in #1055.

Cheers,


--
Mark Nottingham   https://www.mnot.net/