PUT, If-Match, 412 - over-constrained?

Grzegorz Calkowski <grzes@vmware.com> Fri, 22 February 2013 07:11 UTC

Return-Path: <ietf-http-wg-request@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 890F221F8F13 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 21 Feb 2013 23:11:35 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level:
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xAXem2jC0xyW for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 21 Feb 2013 23:11:29 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 4176F21F8EF2 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 21 Feb 2013 23:11:28 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1U8mmL-0002dL-J1 for ietf-http-wg-dist@listhub.w3.org; Fri, 22 Feb 2013 07:10:45 +0000
Resent-Date: Fri, 22 Feb 2013 07:10:45 +0000
Resent-Message-Id: <E1U8mmL-0002dL-J1@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <grzes@zimbra.com>) id 1U8mmC-0002cW-4E for ietf-http-wg@listhub.w3.org; Fri, 22 Feb 2013 07:10:36 +0000
Received: from edge02-zcs.vmware.com ([208.91.2.23]) by maggie.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <grzes@zimbra.com>) id 1U8mmB-0006gG-2O for ietf-http-wg@w3.org; Fri, 22 Feb 2013 07:10:36 +0000
Received: from localhost (localhost [127.0.0.1]) by edge02-zcs.vmware.com (Postfix) with ESMTP id 463FB486B for <ietf-http-wg@w3.org>; Thu, 21 Feb 2013 23:10:07 -0800 (PST)
Received: from edge02-zcs.vmware.com ([127.0.0.1]) by localhost (edge02-zcs.vmware.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 22P87fGEoPI3 for <ietf-http-wg@w3.org>; Thu, 21 Feb 2013 23:09:57 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by edge02-zcs.vmware.com (Postfix) with ESMTP id 479DD486E for <ietf-http-wg@w3.org>; Thu, 21 Feb 2013 23:09:57 -0800 (PST)
X-Virus-Scanned: amavisd-new at edge02-zcs.vmware.com
Received: from edge02-zcs.vmware.com ([127.0.0.1]) by localhost (edge02-zcs.vmware.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id NY8s1Lfr8Gc6 for <ietf-http-wg@w3.org>; Thu, 21 Feb 2013 23:09:57 -0800 (PST)
Received: from mbs01-zcs.vmware.com (mbs01-zcs.vmware.com [10.113.162.14]) by edge02-zcs.vmware.com (Postfix) with ESMTP id 29547486B for <ietf-http-wg@w3.org>; Thu, 21 Feb 2013 23:09:57 -0800 (PST)
Date: Thu, 21 Feb 2013 23:09:57 -0800
From: Grzegorz Calkowski <grzes@vmware.com>
To: ietf-http-wg@w3.org
Message-ID: <1014881229.176050.1361516997077.JavaMail.root@zimbra.com>
In-Reply-To: <E1U7fx5-0000pd-Uo@frink.w3.org>
References: <882266757.1630557.1361252309085.JavaMail.root@zimbra.com> <E1U7fx5-0000pd-Uo@frink.w3.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
X-Mailer: Zimbra 8.0.3_GA_5643 (ZimbraWebClient - GC24 (Mac)/8.0.3_GA_5643)
Thread-Topic: PUT, If-Match, 412 - over-constrained?
Thread-Index: Fhd7VSLZ3pgX1itlvlR1ksYWGcvXuw==
Received-SPF: none client-ip=208.91.2.23; envelope-from=grzes@zimbra.com; helo=edge02-zcs.vmware.com
X-W3C-Hub-Spam-Status: No, score=-5.0
X-W3C-Hub-Spam-Report: RCVD_IN_DNSWL_HI=-5
X-W3C-Scan-Sig: maggie.w3.org 1U8mmB-0006gG-2O f3b3f9672aff07b51f5174bbf2f393e8
X-Original-To: ietf-http-wg@w3.org
Subject: PUT, If-Match, 412 - over-constrained?
Archived-At: <http://www.w3.org/mid/1014881229.176050.1361516997077.JavaMail.root@zimbra.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/16747
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: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Hello,

I found this old post by Roy at:

http://tech.groups.yahoo.com/group/rest-discuss/message/10100

"A more interesting question is whether the spec over-constrains the
case where a PUT is successful but tried again. In other words, should
the server be allowed to accept the PUT if the etag differs but the
current state matches what is being PUT? Subversion handles such
cases nicely because it is common for two developers to patch the
same bugs. I think the "MUST respond with 412" is yet another case
of a bogus requirement being added in 2616.

Note: this is an HTTP spec issue, not a REST issue.

....Roy"

HTTPbis still requires 412 when the only thing that differs is etag. Any chance this will change?

Thanks,
Grzegorz