RE: I-D ACTION:draft-whitehead-http-etag-00.txt

Larry Masinter <LMM@acm.org> Thu, 02 March 2006 23:18 UTC

Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com) by megatron.ietf.org with esmtp (Exim 4.43) id 1FEx4K-0003UC-FK; Thu, 02 Mar 2006 18:18:48 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1FEx4J-0003T3-3M for discuss@apps.ietf.org; Thu, 02 Mar 2006 18:18:47 -0500
Received: from exprod6og5.obsmtp.com ([64.18.1.125]) by ietf-mx.ietf.org with smtp (Exim 4.43) id 1FEx4H-0003Dl-NE for discuss@apps.ietf.org; Thu, 02 Mar 2006 18:18:47 -0500
Received: from source ([192.150.11.134]) by exprod6ob5.obsmtp.com ([64.18.5.12]) with SMTP; Thu, 02 Mar 2006 15:18:44 PST
Received: from inner-relay-3.eur.adobe.com (inner-relay-3.adobe.com [192.150.20.198] (may be forged)) by outbound-smtp-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id k22NI3Bl003286 for <discuss@apps.ietf.org>; Thu, 2 Mar 2006 15:18:03 -0800 (PST)
Received: from calsj-dev (calsj-dev.corp.adobe.com [153.32.1.193]) by inner-relay-3.eur.adobe.com (8.12.10/8.12.9) with ESMTP id k22NIfru014437 for <discuss@apps.ietf.org>; Thu, 2 Mar 2006 15:18:42 -0800 (PST)
Received: from calsj-dev (localhost [127.0.0.1]) by mailsj-v1.corp.adobe.com (iPlanet Messaging Server 5.2 HotFix 2.02 (built Oct 21 2004)) with ESMTP id <0IVI0054JWR493@mailsj-v1.corp.adobe.com> for discuss@apps.ietf.org; Thu, 02 Mar 2006 15:18:40 -0800 (PST)
Received: from MasinterT43p (c-131-70.corp.adobe.com [153.32.131.70]) by mailsj-v1.corp.adobe.com (iPlanet Messaging Server 5.2 HotFix 2.02 (built Oct 21 2004)) with ESMTP id <0IVI00E7AWR4XS@mailsj-v1.corp.adobe.com> for discuss@apps.ietf.org; Thu, 02 Mar 2006 15:18:40 -0800 (PST)
Date: Thu, 02 Mar 2006 15:18:20 -0800
From: Larry Masinter <LMM@acm.org>
Subject: RE: I-D ACTION:draft-whitehead-http-etag-00.txt
In-reply-to: <4406A8D3.5000602@gmx.de>
To: 'Julian Reschke' <julian.reschke@gmx.de>, 'HTTP Working Group' <ietf-http-wg@w3.org>, 'WebDAV' <w3c-dist-auth@w3.org>, discuss@apps.ietf.org
Message-id: <000301c63e4f$988cca60$46832099@corp.adobe.com>
MIME-version: 1.0
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-Mailer: Microsoft Office Outlook 11
Content-type: text/plain; charset="iso-8859-1"
Content-transfer-encoding: quoted-printable
Thread-index: AcY9/AMeH+TliMw7R4GW9jON/UhTAQAUVM7w
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 97adf591118a232206bdb5a27b217034
Cc:
X-BeenThere: discuss@apps.ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: general discussion of application-layer protocols <discuss.apps.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/discuss>, <mailto:discuss-request@apps.ietf.org?subject=unsubscribe>
List-Post: <mailto:discuss@apps.ietf.org>
List-Help: <mailto:discuss-request@apps.ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/discuss>, <mailto:discuss-request@apps.ietf.org?subject=subscribe>
Errors-To: discuss-bounces@apps.ietf.org

> Jim's draft summarizes the various issues 

Looking through this for the issues, this is what I come up with:

It looks like the HTTP spec doesn't say enough about
ETag headers in 200 and 204 responses to PUT. 

And there is a question, when a HTTP server accepts a PUT
but will modify the octet stream before a subsequent GET
of whether it can return a strong ETag (presumably for
the data it has, not for what was sent).

But doing so wouldn’t be useful -- the client stored
something, but gets back a strong etag for data that it
doesn't have.

So, I'd suggest a couple of things:

(a) any server response for a successful PUT may contain
 an ETag header (200 and 204 as well as 201).
(b) If a strong ETag is returned, then the client can 
   assume that the data was stored exactly as sent.
(c) If the server modifies the data before storing it
  in a way that it cannot guarantee a byte-for-byte
  copy in a subsequent GET, it shouldn't use strong eTags.


Larry
-- 
http://larry.masinter.net