Re: draft-ietf-httpbis-digest-headers: Digests and Conditional Requests

Julian Reschke <julian.reschke@gmx.de> Thu, 09 July 2020 06:05 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 B79A33A0FAA for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 8 Jul 2020 23:05:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.649
X-Spam-Level:
X-Spam-Status: No, score=-2.649 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=gmx.net
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 EITZ268vq_BM for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 8 Jul 2020 23:05:31 -0700 (PDT)
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 1C3813A0FA9 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 8 Jul 2020 23:05:30 -0700 (PDT)
Received: from lists by lyra.w3.org with local (Exim 4.92) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1jtPcx-0002tq-1F for ietf-http-wg-dist@listhub.w3.org; Thu, 09 Jul 2020 06:01:47 +0000
Resent-Date: Thu, 09 Jul 2020 06:01:47 +0000
Resent-Message-Id: <E1jtPcx-0002tq-1F@lyra.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by lyra.w3.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <julian.reschke@gmx.de>) id 1jtPcv-0002t5-U2 for ietf-http-wg@listhub.w3.org; Thu, 09 Jul 2020 06:01:45 +0000
Received: from mout.gmx.net ([212.227.17.22]) by mimas.w3.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <julian.reschke@gmx.de>) id 1jtPcu-00054s-7S for ietf-http-wg@w3.org; Thu, 09 Jul 2020 06:01:45 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1594274488; bh=vRpaYag4BsKLNp3UTprGlW4MtLrlGhuIh8Pn3xwlY3A=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=Z9lVOJISA/1Ts8wRYnndIdAsnPdAdqSpbnMf0SYVLy9M0pNBUrUhocwqUxEnNlP/o YgbTgyh84W4X7w0C3FTYQhWy4RcysEIeuK5bskh/RBrshAgmGcORrDeP7INXxS30P9 iusbkdDAEb5pCDMAQmWRh4k139G7NsvVdRFj4Cv8=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from [192.168.178.182] ([84.171.149.214]) by mail.gmx.com (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MZCbB-1kOVHl37MP-00V7Dj; Thu, 09 Jul 2020 08:01:28 +0200
To: Mark Nottingham <mnot@mnot.net>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
References: <34df5225-0f28-2e17-0439-f51e653580b0@gmx.de> <229F55EE-B76A-4C9B-8EC4-2BEE714CBE96@mnot.net> <24b7c84f-3bb4-0a63-3b01-9cd250648a1d@gmx.de> <5752391D-0306-41FC-9FFC-6120C905ADDC@mnot.net>
From: Julian Reschke <julian.reschke@gmx.de>
Message-ID: <1dc10a09-da57-4142-ab9c-055cf67a531e@gmx.de>
Date: Thu, 9 Jul 2020 08:01:28 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0
MIME-Version: 1.0
In-Reply-To: <5752391D-0306-41FC-9FFC-6120C905ADDC@mnot.net>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K1:JroQxcDrH7apZ7SKrU3YVjHgAaU0cTGEM199IrB21/A8WC/KS/7 KsFKuy4VYOMT7i4QNTBktG5DAuYRfQzJKAuilGYtmqoNwZ+IGPRA28/Hs+/qvtqNomc3A1C OwQpyP/hfZTYOaKvx4iR1eoPjJqe+AtPfZYNel2q5wX/Xm6xWmLPhmX8xAv6ny774XMwn0V jiVnMoEHXFULtB1oNr4BQ==
X-UI-Out-Filterresults: notjunk:1;V03:K0:2vrztwmCr+o=:6S3q1n3DBRVIwQ28bK3oGa 9vlO2zwraqvJpqoFc3krWLsSPgPylpCJOD57Ncq+y43G6O8J4Po+lfJ76l6YDuEsY0VpKwMXU lbkZ6sBqbyx3j9ZQx5JIwodlOUpltefYwkFYYef2h/PxLFHxoBwa2h1VkBW8c+nrIeKqA5V2J LnvBxGGfKIsHrnbDVW4wZedFafcD/f2HmguRVqooXslQUxphQoDapvcpBTiFLLhlPlJIPMgpY OJ5Nsy4vjwAlzToiHb0z7NdzMxkocsNk0hFEVpc6Mk4fadFRuSI0+TAS8iyKt7LuZEXkeR/KS 7n9h6zXF1U/a+RjyciruDN3vxu87nZUZe5M5Y4jFGguDp06hbel+DvG8INeFgsS4Mujme/NUI 37A+SvLSOSDQgqKZ96aqsZDHaJPEsIVlZgwzER3o3OJdvhomRKv5EMW97hxuZHSoNiv47poJZ PcU9LLPgHbslWLpqFr8tGQzl7wWo7+zpUJx38wOsKkRQrRZ3Ng5F5EimJ1A4gZdBZBOx4Reh0 EvLeAfoSI0dlWKJhJilqsWFlJm+wGKiT2ItrxWDa4svAu/Szb9yIreHdqaTQ+0PEW3GfFNzvY 0hFsRhMabLeYVI4A9jpXvWbBbD6rx0m/Y65DgxEMpWhVf5k/Wr6M4bFf9rVIgTe11tfXCJS+Q y81PGZ2XK88mSilWAghViRufAFLMvvqQG8DwMMNpe5DlGP0I5bXiNhFabovNvPEzsdsLl8vaf 0nk+fcEuJ8D48B1vWGf5WNVvieb23qfm/WUyDTC9WNohfCBuv7W2igd1SqNjmiAHHW7Nm/Oup lpZ2Sk2Z8Kimx2ctQwfrJhqN6/U5AuJSDpLStPMOdrznwpp47NDbIFWlRs+QxjLZeY7YnMDEM AKDatpPfNzLFlrAwM3xcGtOOX89uScHFvaTcvzPg3yAG5kJH0mOCJ9c/sG1TqAPtvEPW/1v+P 08Fn3XMw9najKd8Oc2SLtJ3kdl9eCY4ZJSK508lBKYTiTvcDHphq4o9WWK5wWPd09IjUaV1DE R7GHV0Q5dZfoORSAkP14XvIXs1zX5B3Z/mAERkLc/3rStXk3i74h5JWSobQoYZSv2rIwzoVtL LC2MsNfJgd05X5SFoHkDpm9VZbozbrzhQFfC9ttMdK2j7s1xlg/PEso0yLARlcj256igMCXO7 dgEGC4+0OGP1KSLY7WY9AxONGRWjCZ08/6J6kEz+AR5OuTiJLMJG03kI405/PObVZqoRfXyg8 FcONIrTYzDUr3H+0l+I4EoBmgdN0O8dq9i6Q6Rw==
Received-SPF: pass client-ip=212.227.17.22; envelope-from=julian.reschke@gmx.de; helo=mout.gmx.net
X-W3C-Hub-Spam-Status: No, score=-5.6
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1jtPcu-00054s-7S a80f7bfb820d8eeaa940ff613e9982f7
X-Original-To: ietf-http-wg@w3.org
Subject: Re: draft-ietf-httpbis-digest-headers: Digests and Conditional Requests
Archived-At: <https://www.w3.org/mid/1dc10a09-da57-4142-ab9c-055cf67a531e@gmx.de>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/37861
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 09.07.2020 07:27, Mark Nottingham wrote:
>
>> On 8 Jul 2020, at 6:28 pm, Julian Reschke <julian.reschke@gmx.de> wrote:
>>
>> ...already covered by "If". I would prefer using something that is
>> already defined, instead of having to mint two more header fields (we'd
>> need both "If-Hash" and "If-Not-Hash", right?).
>
> The problem is that it's not obvious what parts of If will need to be implemented to interoperate for a particular use case; will they need to support entity-tags too? What about Resource-Tags? The ability to put lists of conditions with varying aspects? Different URI schemes? It's actually a quite complex mechanism.

The answer to all of these is "yes", except for URI schemes. It's up to
the server to decide which URI schemes to support for state tokens. "ni"
is special here because there would need to be an out-of-band signal
that the server does these. (For WebDAV, that could be in OPTIONS).

It is more complex, but then having multiple conditional header fields
is complex, too.

> To me, it's much more straightforward to define a new header (or headers) to meet the use case in hand, with some modest affordance for extensibility. It would also remove the need to mint yet another customer parser if Structured Fields were used.

Defining a generic conditional header field using SH syntax would
certainly be interesting, yes.

Best regards, Julian