Re: [core] Stateless proxy and Request-Tag

Jim Schaad <ietf@augustcellars.com> Thu, 31 October 2019 15:29 UTC

Return-Path: <ietf@augustcellars.com>
X-Original-To: core@ietfa.amsl.com
Delivered-To: core@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6BD2912006F for <core@ietfa.amsl.com>; Thu, 31 Oct 2019 08:29:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham 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 BpbKtacpwypE for <core@ietfa.amsl.com>; Thu, 31 Oct 2019 08:29:13 -0700 (PDT)
Received: from mail2.augustcellars.com (augustcellars.com [50.45.239.150]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id AD8A2120811 for <core@ietf.org>; Thu, 31 Oct 2019 08:29:13 -0700 (PDT)
Received: from Jude (73.180.8.170) by mail2.augustcellars.com (192.168.0.56) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 31 Oct 2019 08:28:53 -0700
From: Jim Schaad <ietf@augustcellars.com>
To: 'Christian Amsüss' <christian@amsuess.com>
CC: 'Core WG mailing list' <core@ietf.org>
References: <20191031133656.GA17667@hephaistos.amsuess.com> <009101d58ff6$22d85f70$68891e50$@augustcellars.com> <20191031145048.GB25593@hephaistos.amsuess.com>
In-Reply-To: <20191031145048.GB25593@hephaistos.amsuess.com>
Date: Thu, 31 Oct 2019 08:28:51 -0700
Message-ID: <00a001d58fff$e7d9f0f0$b78dd2d0$@augustcellars.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
X-Mailer: Microsoft Outlook 16.0
Thread-Index: AQJXh/xr2DZ6PZdZqaLt/5Sh6OoZNAEdZT+PAYTc7NWmW92soA==
Content-Language: en-us
X-Originating-IP: [73.180.8.170]
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/GLysyYZ9Okx0DGumJwOctjx4vbM>
Subject: Re: [core] Stateless proxy and Request-Tag
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Constrained RESTful Environments \(CoRE\) Working Group list" <core.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/core>, <mailto:core-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/core/>
List-Post: <mailto:core@ietf.org>
List-Help: <mailto:core-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/core>, <mailto:core-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 31 Oct 2019 15:29:15 -0000

If it is a fetch then it has payload

-----Original Message-----
From: 'Christian Amsüss' <christian@amsuess.com> 
Sent: Thursday, October 31, 2019 7:51 AM
To: Jim Schaad <ietf@augustcellars.com>
Cc: Core WG mailing list <core@ietf.org>
Subject: Re: [core] Stateless proxy and Request-Tag

> Isn't this the ETag not Request-Tag?

This is about the server knowing which response to send back out. In the
later phase of a Block1+2 operation, there is neither Block1 nor a payload
sent with the requests that pull out the rest of the response body. The
server, in the proxy-less case, would rely on the endpoint to know which
operation those belong to, and would need a Request-Tag to tell them apart.

A stateless proxy couldn't tell whether those later Block2 come from the
tail of a Block1+2 operation or from a Block2-only one, so it would send a
Request-Tag.

(I originally thought it could tell that it's not definitely not a
Block1+2 follow-up if there is a non-empty payload in the Block2:>0
requests, but reading RFC7959 Section 2.4 again -- is there, at all?
There's no example of a non-zero-but-non-block1-either exchange in the spec;
"the requester may retrieve additional blocks of the resource representation
by sending further requests with the same options as the initial request and
a Block2 Option giving the block number and block size desired" but doesn't
tell about payload. I feel I should know that for certain but am embarassed
I don't).

KR
c

--
To use raw power is to make yourself infinitely vulnerable to greater
powers.
  -- Bene Gesserit axiom