Re: feedback on draft-murchison-webdav-prefer-09

Ken Murchison <murch@andrew.cmu.edu> Mon, 14 November 2016 13:47 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 C707E1296F6 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 14 Nov 2016 05:47:10 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.398
X-Spam-Level:
X-Spam-Status: No, score=-8.398 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-1.497, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=unavailable 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 NJgfJV5eUt0y for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 14 Nov 2016 05:47:09 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C54DB1296F3 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 14 Nov 2016 05:47:09 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1c6HXu-0005Na-Px for ietf-http-wg-dist@listhub.w3.org; Mon, 14 Nov 2016 13:43:38 +0000
Resent-Date: Mon, 14 Nov 2016 13:43:38 +0000
Resent-Message-Id: <E1c6HXu-0005Na-Px@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <murch@andrew.cmu.edu>) id 1c6HXl-0005LG-1Y; Mon, 14 Nov 2016 13:43:29 +0000
Received: from smtp.andrew.cmu.edu ([128.2.157.38]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <murch@andrew.cmu.edu>) id 1c6HXf-0001FS-6K; Mon, 14 Nov 2016 13:43:23 +0000
Received: from [172.31.25.154] (VPN-172-31-25-154.VPN.CMU.LOCAL [172.31.25.154]) (user=murch mech=PLAIN (0 bits)) by smtp.andrew.cmu.edu (8.15.2/8.15.2) with ESMTPSA id uAEDgubI081605 (version=TLSv1.2 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 14 Nov 2016 08:42:57 -0500
To: Julian Reschke <julian.reschke@gmx.de>, HTTP Working Group <ietf-http-wg@w3.org>, WebDAV <w3c-dist-auth@w3.org>
References: <147647657198.18541.16272058165406493619.idtracker@ietfa.amsl.com> <c01d2bd4-4495-ba7d-b3bd-3b3bab4314e2@gmx.de> <7fdc3595-9e50-3515-1822-ef13e9197518@gmx.de>
From: Ken Murchison <murch@andrew.cmu.edu>
Organization: Carnegie Mellon University
Message-ID: <7e92cd24-569e-7eae-e9d9-397660ec0798@andrew.cmu.edu>
Date: Mon, 14 Nov 2016 08:42:56 -0500
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0
MIME-Version: 1.0
In-Reply-To: <7fdc3595-9e50-3515-1822-ef13e9197518@gmx.de>
Content-Type: text/plain; charset="windows-1252"; format="flowed"
Content-Transfer-Encoding: 7bit
X-PMX-Version: 6.3.0.2556906, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2016.11.14.133617
X-SMTP-Spam-Clean: 8% ( HTML_00_01 0.05, HTML_00_10 0.05, BODY_SIZE_5000_5999 0, BODY_SIZE_7000_LESS 0, DATE_TZ_NA 0, FROM_EDU_TLD 0, IN_REP_TO 0, LEGITIMATE_NEGATE 0, LEGITIMATE_SIGNS 0, MSG_THREAD 0, NO_CTA_URI_FOUND 0, NO_URI_FOUND 0, NO_URI_HTTPS 0, REFERENCES 0, __BOUNCE_CHALLENGE_SUBJ 0, __BOUNCE_NDR_SUBJ_EXEMPT 0, __CP_NOT_1 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __FORWARDED_MSG 0, __FROM_HAS_AT 0, __HAS_FROM 0, __HAS_MSGID 0, __IN_REP_TO 0, __LINES_OF_YELLING 0, __MIME_TEXT_ONLY 0, __MIME_TEXT_P 0, __MIME_TEXT_P1 0, __MIME_VERSION 0, __MOZILLA_USER_AGENT 0, __PHISH_SPEAR_STRUCTURE_1 0, __REFERENCES 0, __SANE_MSGID 0, __SUBJ_ALPHA_NEGATE 0, __TO_MALFORMED_2 0, __TO_NAME 0, __TO_NAME_DIFF_FROM_ACC 0, __TO_REAL_NAMES 0, __USER_AGENT 0)
X-SMTP-Spam-Score: 8%
X-Scanned-By: MIMEDefang 2.78 on 128.2.157.38
Received-SPF: none client-ip=128.2.157.38; envelope-from=murch@andrew.cmu.edu; helo=smtp.andrew.cmu.edu
X-W3C-Hub-Spam-Status: No, score=-5.4
X-W3C-Hub-Spam-Report: AWL=3.550, BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-2.799, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1c6HXf-0001FS-6K f8ce9012bbf756366d0659af0ece665d
X-Original-To: ietf-http-wg@w3.org
Subject: Re: feedback on draft-murchison-webdav-prefer-09
Archived-At: <http://www.w3.org/mid/7e92cd24-569e-7eae-e9d9-397660ec0798@andrew.cmu.edu>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/32893
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>

Hi Julian,

Thanks for the review.  Comments/questions inline.


On 11/14/2016 12:23 AM, Julian Reschke wrote:
> On 2016-10-17 08:14, Julian Reschke wrote:
>> ...
>
> See below some quick (for some value of "quick"...) feedback:
>
> Open Issues
>
>    o  Does this draft also update the RFCs for CalDAV, CardDAV, and
>       those documenting the effected HTTP methods?
>
> I believe so.

So, I've added the following to the list of RFCs updated:

3253: REPORT
4918: PROPFIND, PROPPATCH, MKCOL
4971: CalDAV, MKCALENDAR
5689: Ext MKCOL
5789: PATCH
5995: POST (add-member)
6252: CardDAV

As you mention below, do you think I need to add 7231 (PUT) to that 
list?  7240 doesn't list any RFCs that it updates, particularly 7231.


>    o  Should we explitcly mention that this draft applies to any/all
>       *DAV protocols (e.g.  CalDAV and CardDAV)?  Would a title change
>       be in order?
>
> I don't believe that's needed.
>
>    o  Should we use a non-protocol-specific REPORT example such as
>       DAV:sync-collection rather than using CalDAV:calendar-multiget?
>
> Yes, optimally one defined in the base specs.

I think the most widely used REPORT that is closest to being part of the 
base specs would be DAV:sync-collection.  Unless you think I should use 
DAV:version-tree from 3253 or one of the WebDAV ACL REPORTs.



> Nits:
>
> 1.  Introduction
>
>    [RFC7240] also defines the "return=representaion" preference which
>
> s/representaion/representation/
>
>    Finally, Section 4 of this specifcation defines the "depth-noroot"
>
> s/specifcation/specification/

Both Fixed.



> 2.2.  Minimal REPORT Response
>
>    When a REPORT [RFC3253] request, whose report type results in a 207
>    (Multi-Status) response, contains a Prefer header field with a
>    preference of "return=minimal", the server SHOULD omit all
>    DAV:propstat XML elements containing a DAV:status XML element of
>    value 404 (Not Found) [RFC7231] from the 207 (Multi-Status) response.
>    If the omission of such a DAV:propstat element would result in a
>    DAV:response XML element containing zero DAV:propstat elements, the
>    server MUST substitute one of the following in its place:
>
>    o  a DAV:propstat element consisting of an empty DAV:prop element and
>       a DAV:status element of value 200 (OK) [RFC7231]
>
>    o  a DAV:status element of value 200 (OK)
>
>    See Appendix B.2 for examples.
>
> That's identical as for PROPFIND right? Maybe we could save some spec 
> text here?

So, perhaps one combined section entitled "Minimal PROPFIND and REPORT 
Responses" with an opening sentence "When a PROPFIND request, or a 
REPORT request whose report type results in a 207 (Multi-Status) 
response, contains a Prefer ...".

Is that what you had in mind?


> 3.  Reducing WebDAV Round-Trips with "return=representation"
>
>    The PUT, COPY, MOVE, [RFC4918] PATCH, [RFC5789] and POST [RFC5995]
>
> Nit: reference looks a bit weird in between. Also, PUT is defined RFC 
> 723x, which brings us to the question whether this spec needs to 
> update RFC 723x.

Just remove the references altogether, or place them elsewhere?


>    methods can be used to create or update a resource.  In some
>    instances, such as with CalDAV Scheduling [RFC6638], the created or
>    updated resource representation may differ from the representation
>    sent in the body of the request or referenced by the effective
>    request URI.  In cases where the client would normally issue a
>    subsequent GET request to retrieve the current representation of the
>    resource, the client SHOULD instead include a Prefer header field
>
> I don't think we need a SHOULD here for the client.

What do you suggest instead?  MAY?


> 4.  The "depth-noroot" Processing Preference
>
> Still not clear whether this is needed.

The folks at Apple requested this preference and are keen to see it stay 
in the spec.  This actually mimics what Microsoft has done with their 
proprietary Depth header field values "1,noroot", and "infinity,noroot".


> 5.  Implementation Status
>
> Nit: -> appendix

RFC 7942 states that this section (which will be removed by the RFC 
editor anyways) should appear just before Security Considerations.


> 7.  IANA Considerations
>
> I think we need to update the existing IANA registrations as well.

In what fashion?


> Appendix A.  The Brief and Extended Depth Request Header Fields
>
>    ...
>
>    Client and server implementations that already support the Brief
>    header field can add support for the "return=minimal" preference with
>    nominal effort.
>
>    If a server supporting the Prefer header field receives both the
>    Brief and Prefer header fields in a request, it MUST ignore the Brief
>    header field and only use the Prefer header field preferences.
>
> I don't think we can have a MUST here on something that actually is 
> undefined, as far as IETF specs go.

Use SHOULD instead of MUST, or simply remove the suggestion entirely?

-- 
Kenneth Murchison
Principal Systems Software Engineer
Carnegie Mellon University