Re: [art] ART Area Review for draft-ietf-calext-caldav-attachments-02

Julian Reschke <julian.reschke@gmx.de> Wed, 17 May 2017 14:06 UTC

Return-Path: <julian.reschke@gmx.de>
X-Original-To: art@ietfa.amsl.com
Delivered-To: art@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 73034129418; Wed, 17 May 2017 07:06:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.7
X-Spam-Level:
X-Spam-Status: No, score=-2.7 tagged_above=-999 required=5 tests=[BAYES_50=0.8, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-2.8, SPF_PASS=-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 dJEDtbprdtcT; Wed, 17 May 2017 07:06:02 -0700 (PDT)
Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id ADD96124281; Wed, 17 May 2017 06:58:10 -0700 (PDT)
Received: from [192.168.178.20] ([93.217.117.158]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0Lwoiq-1e45352cEC-016RvB; Wed, 17 May 2017 15:58:03 +0200
To: Ken Murchison <murch@andrew.cmu.edu>, IETF Discussion <ietf@ietf.org>, art@ietf.org
References: <c04f39e2-79d2-ab9d-59ab-26e51d7ab5fc@gmx.de> <81613220-989b-ca78-fe56-0ac7b19e7ce6@andrew.cmu.edu> <b2a4924d-c7c9-b40b-484f-9fab48bfe5de@gmx.de> <a603f3de-2d96-6f86-e0c3-3e0a4884a185@andrew.cmu.edu>
From: Julian Reschke <julian.reschke@gmx.de>
Message-ID: <7bcfecea-3a89-978c-9e1b-edf9aac5dd44@gmx.de>
Date: Wed, 17 May 2017 15:58:00 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
MIME-Version: 1.0
In-Reply-To: <a603f3de-2d96-6f86-e0c3-3e0a4884a185@andrew.cmu.edu>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K0:w6GTVvb1P50+BbhIgQc9idkKIq+GaHaSg7av9cY3+/lIykUj/2r vXNsT7+0USymC6z4xGuP+9snrxaev3FiyA/eKrJyUHXHzuqCugmYrFxi08DWTrJ/U6jEPB2 u3u26aS9wxwswMatDAu92s0hvQirex94q+e8OY1CPwX+KAcm/g6GdTunouvsykum/cAIhOL JQ0EVyS67AR9BQdO+OVrQ==
X-UI-Out-Filterresults: notjunk:1;V01:K0:MwWTpvXgYYw=:Kc50tQ9aKrXyRdwtW3e/h6 jZsn92p8Z6fzFDp+7sKGlbPeObFlMBANDJkmcpidDi/t6/btSuIi5+mJUt27rx/ns77p1/20p gN38NqrT00rJ0A24PZ1Y20wZklygbd7erjPtsBROrVCDON46hv3WJZXteN2CprgS47EGKI+cA nrYKuPpLbXh+1UyyzO3emTbEZZ6UF3licBSp8BiSubxlcQbszaAFJ6wViLrGm3Ev2GF5S102T ni+5Qi2XmsVTo3sIL22qSMmqAsXoAj9ZvO34C3bqs0AQX+HNsA4jeS8CCKMm6ToYcAR+8hRtt 131bn1kDpiSU7LBkkfH8doSqZV9WFNLG2FbFt7RyUjwj21fbLqkdZFR7ZE9bwAjokqODXKIN1 66iUpsqBKeJ8D7c6/V5J2/fU5YPEjBvlCcIMA5voBo29PcJrbtYEFkqvsj2B+rgsYj0TVJhe4 axcXwqWpBzhvCv3Kf009c0A7H0rw0nu0Byfcc0qfSd1GzJV4TtJyVi86GlvW4JQTbTVKXDzvF edeRXipijKtwG4cORkKTk7zotHn1tGepzxOaTymoOb7V+59eQnZoCevy4XjZ9u43w/tl3jllj tuRZgDOmFZxR3c0BstU1E7EQG89fYaop3W7X2A48/11PuYxE6QoAXcmnOX2pFrJghkHcYfv8o vhvfvcmW9yDv+CxcyXixWCC9BMGjfZxyi2+74vUvt3NjUAEle0ceg7KkgikjiGf9HqY+ZPYDU JYYOzxsTRIcY6c3DGof2M2YrVVLfPY//xxYehSnwSCt9r4A5lwXpNjwsUX2m0IG3JuEOPlM2w 9h1dvWn
Archived-At: <https://mailarchive.ietf.org/arch/msg/art/E0JGO705GtXG-ecuMu0pGl6Gu3Y>
Subject: Re: [art] ART Area Review for draft-ietf-calext-caldav-attachments-02
X-BeenThere: art@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Applications and Real-Time Area Discussion <art.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/art>, <mailto:art-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/art/>
List-Post: <mailto:art@ietf.org>
List-Help: <mailto:art-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/art>, <mailto:art-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 17 May 2017 14:06:08 -0000

On 2017-05-17 15:07, Ken Murchison wrote:
> ...
>> Only for creation of the attachment. Once is has been created, it
>> should have its own URI, and the usual HTTP methods should be applicable.
>
> Using HTTP methods directly on the attachment URI makes things more
> difficult because the calendar resource(s) referencing the attachment
> also need to be updated.  This would have to be done either as a
> side-effect of the PUT/DELETE on the attachment, or as a separate PUT
> (and separate round-trips) on the resource(s).  The desire was to avoid
> doing either one of these, which is why a POST on the calendar resource
> was chosen as the method to add/update/delete an attachment from a
> calendar resource.

But the POST is *not* on the calendar resource, but on the calendar 
resource + query parameters, which, from HTTP's point of view is a 
different resource already.

Furthermore, what URIs are used is orthogonal to the question of which 
methods to use.

Why is

   POST /calendar-entry?action=remove&attachment=xyz

easier to process than

   DELETE /calendar-entry?attachment=xyz

or

   DELETE /calendar-entry/attachments/xyz

?

> ...

Best regards, Julian