Re: Weak validators in conditional requests

Mark Nottingham <mnot@mnot.net> Wed, 03 October 2018 07:17 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 0371F131215 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 3 Oct 2018 00:17:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.75
X-Spam-Level:
X-Spam-Status: No, score=-2.75 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, URIBL_BLOCKED=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=Ff3nYlmb; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=vopZkP2k
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 zN8aGhUjJYw2 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 3 Oct 2018 00:17:49 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [IPv6:2603:400a:ffff:804:801e:34:0:38]) (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 B1B09131211 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 3 Oct 2018 00:17:49 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.89) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1g7bNF-0005O8-Co for ietf-http-wg-dist@listhub.w3.org; Wed, 03 Oct 2018 07:15:09 +0000
Resent-Date: Wed, 03 Oct 2018 07:15:09 +0000
Resent-Message-Id: <E1g7bNF-0005O8-Co@frink.w3.org>
Received: from titan.w3.org ([2603:400a:ffff:804:801e:34:0:4c]) by frink.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from <mnot@mnot.net>) id 1g7bNE-0005Kr-1t for ietf-http-wg@listhub.w3.org; Wed, 03 Oct 2018 07:15:08 +0000
Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from <mnot@mnot.net>) id 1g7bNC-0003VE-88 for ietf-http-wg@w3.org; Wed, 03 Oct 2018 07:15:07 +0000
Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 8963521BF4; Wed, 3 Oct 2018 03:14:45 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Wed, 03 Oct 2018 03:14:45 -0400
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=fm3; bh=U +EPt3UJBEYRql9ciIrfnho/uIBZBWcCW5V0lg/TV6E=; b=Ff3nYlmblL8u/IpBW N+A9/HOfC2SpguOjL/3Vrf6voURKAMqdoN6iIabaIidgJdJLDL91bnMhaSjvsQ2W S2Efj95AumjirL76wo2UG5K2gYQP21vtBmhp6dJhbvFKXAAQOf/kwBsLe6GtGzuw M920PMByDOA/XCJLAmq2iGrjQ7zphbD+Y47uC/477KH3H0wP1odFHlsdOoLJE2Wy +zJYhMxpTUxcf36uQ8wBdBMUW2r4VeHx17ESdd+4o4mu0nvOSW9km1WZre9UVU8d SX188WRq6KiwNGVBR4wHCcjAIdn38wD3lZ1jW/cu6YiU4tiCOFAvbK7ugqH0W7fs qvq5g==
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=fm3; bh=U+EPt3UJBEYRql9ciIrfnho/uIBZBWcCW5V0lg/TV 6E=; b=vopZkP2kUH/BQL5Enn4TJmr199Au1UCb8KR5e+h3uutsQy41t28cdRV99 UsXyrzebgcfT64T6oVDpEqVnoIGl3aW4T5R9IMHTCwrtw8OW0RqQ51Zv4mcbsaA0 QXGn+Qktmg2PwwN0CU1Id2NDczKZyO1h2ONzlVw7KfaVZs3as5hN+QO7f07fiFmY 05OnlHLB5HjQ5ChDCrWghIqH2kJ0JeTEnBI6FtTV7NarP2Jh5bib6aPw+Qoapoii ChuIGY436wgHhwXflV8hlwHOuzXvjnGdziM/TVZwdDCD6f1DbS3aeHthuYV1XGBA 0Q8IrVKNi0u0QCqWYnABuXl2J5Aaw==
X-ME-Sender: <xms:ZGy0W3wKNaUWyAKUXZi5BELGt4UFlQLWN1HsDvTEqcjfWJRVCKBwJg>
X-ME-Proxy: <xmx:ZGy0W-Slw9A7KiDpa6H63AuSJapSWfTNr1xEjGg0Iq3NGmjhi7KD4w> <xmx:ZGy0W0MwKmJQ7ne8mrs-7iMQyCkaDme8JIYdLIqfZHp0Ztu7zPLzdQ> <xmx:ZGy0W8i6HRRDJw2FQfRFsCkqNenpyGalrKehlVU4RDLts4noz8Jjjg> <xmx:ZGy0WxkepF55Znwl1GHjqOlC285z75q88w4MiltTVPTmbOkjAK14Rw> <xmx:ZGy0W4h_nZ8N40LQRjdqOiCiyBrFoUyaTCe3d9GUEbr_jv4VY7lkYQ> <xmx:ZWy0W6nCTtUlK3vYZSPjAVTTc_oAFPqm62CViVGi2OWtzByO2I_j-A>
Received: from attitudadjuster.mnot.net (unknown [144.136.175.28]) by mail.messagingengine.com (Postfix) with ESMTPA id 394BB102D6; Wed, 3 Oct 2018 03:14:42 -0400 (EDT)
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (Mac OS X Mail 12.0 \(3445.100.39\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <59f34446-46d1-7988-dae8-81bb799f68f9@measurement-factory.com>
Date: Wed, 03 Oct 2018 17:14:40 +1000
Cc: ietf-http-wg@w3.org
Content-Transfer-Encoding: quoted-printable
Message-Id: <4DB4F718-C06B-45AA-869F-CD6907555559@mnot.net>
References: <bf5a9b56-c416-d4ab-2fbe-ac9b0482dcaa@measurement-factory.com> <0ACB722F-BC39-49BE-9401-F01193E45DAD@mnot.net> <59f34446-46d1-7988-dae8-81bb799f68f9@measurement-factory.com>
To: Eduard Bagdasaryan <eduard.bagdasaryan@measurement-factory.com>
X-Mailer: Apple Mail (2.3445.100.39)
X-W3C-Hub-Spam-Status: No, score=-6.6
X-W3C-Hub-Spam-Report: AWL=3.091, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-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 1g7bNC-0003VE-88 81fc791db6a6d6c08bd2dce8a18855f8
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Weak validators in conditional requests
Archived-At: <https://www.w3.org/mid/4DB4F718-C06B-45AA-869F-CD6907555559@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/35943
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>

Eduard,

> On 4 Sep 2018, at 9:09 pm, Eduard Bagdasaryan <eduard.bagdasaryan@measurement-factory.com> wrote:
> 
> Yes, it is stated there, but only about If-Match and If-None-Match
> headers. What about If-Modified-Since, If-Unmodified-Since
> and If-Range?

In 723x, the strong vs. weak comparison function distinction is only defined for ETags, not for Last-Modified. The requirements on comparison for LM are defined here:
  https://httpwg.org/specs/rfc7232.html#lastmod.comparison

For If-Range, 7233 says:

"""
A server that evaluates an If-Range precondition MUST use the strong comparison function when comparing entity-tags (Section 2.3.2 of [RFC7232]) and MUST evaluate the condition as false if an HTTP-date validator is provided that is not a strong validator in the sense defined by Section 2.2.2 of [RFC7232]. 
"""

https://httpwg.org/specs/rfc7233.html#header.if-range

Cheers,

> 
> 
> On 04.09.2018 05:01, Mark Nottingham wrote:
>>> Could you please help with the following two questions:
>>> 
>>> 1. The old RFC 2616 has a MUST requirement:
>>> 
>>> 
>>>> A cache or origin server receiving a conditional request, other than
>>>> a full-body GET request, MUST use the strong comparison function to
>>>> evaluate the condition.
>>>> 
>>> But I have not found this (or equivalent) in HTTPbis. Is it deprecated?
>>> 
>> It's stated in the definition of each conditional header; see:
>>   
>> https://httpwg.org/specs/rfc7232.html#preconditions
> 

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