Re: Call for Adoption: SEARCH method

Julian Reschke <julian.reschke@gmx.de> Fri, 06 November 2020 04:26 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 0D46A3A0B73 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 5 Nov 2020 20:26:38 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.895
X-Spam-Level:
X-Spam-Status: No, score=-2.895 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, MAILING_LIST_MULTI=-1, NICE_REPLY_A=-0.247, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=gmx.net
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 TLXSjC4ipzbV for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 5 Nov 2020 20:26:36 -0800 (PST)
Received: from lyra.w3.org (lyra.w3.org [128.30.52.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 148583A0B74 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 5 Nov 2020 20:26:35 -0800 (PST)
Received: from lists by lyra.w3.org with local (Exim 4.92) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1katI9-0006NH-2S for ietf-http-wg-dist@listhub.w3.org; Fri, 06 Nov 2020 04:24:01 +0000
Resent-Date: Fri, 06 Nov 2020 04:24:01 +0000
Resent-Message-Id: <E1katI9-0006NH-2S@lyra.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by lyra.w3.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <julian.reschke@gmx.de>) id 1katI7-0006MV-23 for ietf-http-wg@listhub.w3.org; Fri, 06 Nov 2020 04:23:59 +0000
Received: from mout.gmx.net ([212.227.17.21]) by mimas.w3.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <julian.reschke@gmx.de>) id 1katI4-0000mA-SU for ietf-http-wg@w3.org; Fri, 06 Nov 2020 04:23:58 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1604636623; bh=El7vDxInAFtjADaLqGu5pQiyFtXGEUgEkxsUR3pIIj8=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=NTwXrcVnzKik5X/QPXe4gjQHj6ZmE5pDyLLF16NrdYCdltWdsfOCqnegcMplNOLBy qeh+WPpJ+rK9/vpAePcW5GV/KPMVsCcvNiQfvYXzvIJcHlbA7dVh1tuNPuau6Qx+sC 8gkZrb1tiIoNPued8Bd/Fb7JK8pfi3vl8dpeqSHQ=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from [192.168.178.20] ([84.171.147.4]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MVNB1-1kjNCC0T3v-00SR13; Fri, 06 Nov 2020 05:23:43 +0100
To: Michael Douglass <mikeadouglass@gmail.com>, James Fuller <jim@webcomposite.com>
Cc: "HTTPbis WG (IETF)" <ietf-http-wg@w3.org>
References: <F0556EC2-D5AD-47FF-A780-15949F57A911@mnot.net> <8AE9002C-78DE-41E6-8D5E-C2FAF76A3A3B@bzfx.net> <a09e0f19-f1ca-1e70-05d6-f59f4fe06cec@gmx.de> <CAEaz5mvdTNGtxkB26cp9NpTSr1kD5Bpb1t_LBBEX349yCqS2cg@mail.gmail.com> <2c90fb7d-483c-fc8a-2406-859d3910494d@gmail.com> <50f1e5d6-54b3-a73a-3ea8-1876151245af@gmx.de> <e9663b7f-99fa-2fd6-6e3c-3a1a66c4b469@gmail.com>
From: Julian Reschke <julian.reschke@gmx.de>
Message-ID: <f03f26ef-c1fd-99fa-2238-5b902ac86a80@gmx.de>
Date: Fri, 06 Nov 2020 05:23:42 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0
MIME-Version: 1.0
In-Reply-To: <e9663b7f-99fa-2fd6-6e3c-3a1a66c4b469@gmail.com>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K1:MIDw6XHmfwWLPIw3qbgNB5jl/MS5QJR+UsV0VD1ofeI/z8OgZ2E GdI2kWyBv37g+r4tZqRLINEcAd4v0lBGIGCA+SpMGP2M3Pg4fA1im5F2craNP/DEjmIPnAI VagbuE6IFdQdNGlCZkoc9Sl8elkYQ1uQvbIbVPtJwmMyweyLaZ63Z4FamSbB/ecxHNSIMb4 qYRoR55CEC8RQcPfAVAuw==
X-UI-Out-Filterresults: notjunk:1;V03:K0:rtOCueT2WkE=:/9FntDb0dwEKhY/FWDvoaD JkJu4G2A566I8uv3kvoQk8svjn6tiTJAyuM8qI8IKnY4aHqpSZNx69GO11GwKjYdpuKVUH3gI PayOH/evgZiDmUXlCJZsvNuskYy7DjEJA4nRRRiJngXJvkPrQYOIQLHsoL01U2o5bQeEPKo4G X+DEp+fI0WhM/9KZEhj8YL8k8qiWaBx3VTbhBKi6ELvfX/hEevZE+2Ss9t6lDGn3uhzqgoh6j Dv/iXjk9bqZEceXs1Qfp4rmQY9rJ7hc0Hb4xvtDv2TPsYq6hAxoYpa3NizO9K+5LlDIVTEKJI KttgA9MeezIccDLX6cTjZDknxLm7BQgM2x3gTkh6VxhSE7mNWC3OTxX01UDlPsga5Yj4rLZvp +7KzY2G4QWMVJI2nIaTGEKipB7yl2Uwhwyp2Grc90MRViMzonrBly5HbvwPQ3NsxTzZg8FSWR nnDJn6GUWx4hqCe2584xk59UqFIpICv5gsrjwNWkFMTAsh4Xe3IgxxV6Fu3ciWH1aiic0Csok suF/j7p3TTefMCwFEjNxKYw8WhrG2KzMzI9Q/golUeV4EZV+mlBkEHVPbJqfjAFjEIq21uSCD BK4Zmd2MBv3j5hsTxrBCQ0tizIltz9XHRlmoM6A8T2Q4Qg3l0VIyM9T0sRuWIxuJ8OGiK3g5I KYsI4R6JRWBBWKdgu5lBVgJSekzfF0E/SQnOzrSoPqFs9sx0VwK/G0jNaMdXXgncWpWl/gO0D i40m/+weolTOoZr299ra4NDZtj1+npJ2sQZ9fhdcA40kO24R5F+aMVnSeFlNJDuCyiN9akY6T bfo6leXDk1SL0xo4/XZMFRcWn/WvnsEIMdOalmzYDaJBE7HYxCCPns3B+Y8vwsygf+DGumUKo 317R5dsH6pzTMxsQMZxA==
Received-SPF: pass client-ip=212.227.17.21; envelope-from=julian.reschke@gmx.de; helo=mout.gmx.net
X-W3C-Hub-Spam-Status: No, score=-5.6
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1katI4-0000mA-SU eea4304bc324d2723081e7cac2c1d72a
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Call for Adoption: SEARCH method
Archived-At: <https://www.w3.org/mid/f03f26ef-c1fd-99fa-2238-5b902ac86a80@gmx.de>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/38193
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: <https://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Am 06.11.2020 um 04:46 schrieb Michael Douglass:
>
> On 11/5/20 14:37, Julian Reschke wrote:
>> Am 05.11.2020 um 19:05 schrieb Michael Douglass:
>>> I also support not limiting the content type. I can imagine implementing
>>> a search extension to existing XML based protocols.
>>>
>>> RFC5323 Section 3 say's
>>>
>>>     Clients can determine which query grammars are supported by an
>>>     arbiter by invoking OPTIONS on the search arbiter.  If the resource
>>>     supports SEARCH, then the DASL response header will appear in the
>>>     response.  The DASL response header lists the supported grammars.
>>>
>>>     Servers supporting the WebDAV extensions [RFC3253
>>> <https://tools.ietf.org/html/rfc3253>] and/or [RFC3744
>>> <https://tools.ietf.org/html/rfc3744>]
>>>     MUST also:
>>>
>>>     o  report SEARCH in the live property DAV:supported-method-set for
>>>        all search arbiter resources, and
>>>
>>> ...
>>>
>>> Presumably a WebDAV compliant client knows whether or not SEARCH is
>>> supported as a WebDAV service
>>>
>>> So:
>>>
>>> If it's in DAV:supported-method-set it's WebDAV SEARCH
>>>
>>> If it's in the "Accept-Search" Header Field it's the new SEARCH
>>>
>>> and you can't have both. No need to parse the content.
>>> ...
>>
>> Yes, but...
>>
>> The content type in the payload is supposed to describe the query
>> semantics. I would expect any new use of SEARCH to actually use a
>> payload format that is more specific than text/xml or application/xml.
>>
>> Am I missing something here?
>
> Sorry - I think I replied too high up in the thread.
>
> Your later message said:
>
>>
>>> for backwards compatibility with existing WebDAV implementations,
>>> SEARCH requests that use the text/xml or application/xml content
>>> types MUST be processed per the requirements established by [RFC5323
>>> <https://tools.ietf.org/html/rfc5323>].
>>
>> I think this is too restrictive. If it’s not possible to relax the
>> RFC5323 requirements, I would favor using REPORT instead.
>> ...
>>
>> We can relax the requirement to apply only to */xml which has a document
>> element in the "DAV:" namespace (see
>> <https://greenbytes.de/tech/webdav/rfc5323.html#rfc.section.2.2.2>, or
>> even restrict it to the two element names defined there).
> I think my suggestion is a valid way of distinguishing between WebDAV
> search and the new search. Given the existing and proposed headers
> there's no need to parse the content to determine if it's a WebDAV search.

But you need to parse the content at some point of time anyway, right?

> If it's a WebDAV search then that's handled however it's done now (or in
> the future).
>
> If it's the new search then I don't see that we need to restrict the
> content to NOT have DAV: namespace elements.

First of all, this whole discussion only affects resources that want to
support *both*, that is, implementations of WebDAV SEARCH which want to
implement non-WebDAV uses as well.

Furhermore, the whole distinction between "new" vs "WebDAV" seems to be
weird. The only difference is that for certain specific payloads, the
existing RFC mandates a very specific response format. That's it.
Different request payload formats are totally free to pick what they
need. We are just *relaxing* the requirements.

Best regards, Julian