Re: Call for Adoption: SEARCH method

Michael Douglass <mikeadouglass@gmail.com> Thu, 05 November 2020 18:08 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 4CC3A3A19EC for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 5 Nov 2020 10:08:19 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.994
X-Spam-Level:
X-Spam-Status: No, score=-2.994 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, HTML_MESSAGE=0.001, 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 (2048-bit key) header.d=gmail.com
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 cKH5oAMgC4MQ for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 5 Nov 2020 10:08:17 -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 28AC33A19BE for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 5 Nov 2020 10:08:11 -0800 (PST)
Received: from lists by lyra.w3.org with local (Exim 4.92) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1kajdi-0002rF-IV for ietf-http-wg-dist@listhub.w3.org; Thu, 05 Nov 2020 18:05:38 +0000
Resent-Date: Thu, 05 Nov 2020 18:05:38 +0000
Resent-Message-Id: <E1kajdi-0002rF-IV@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 <mikeadouglass@gmail.com>) id 1kajdh-0002qP-B7 for ietf-http-wg@listhub.w3.org; Thu, 05 Nov 2020 18:05:37 +0000
Received: from mail-qt1-x82c.google.com ([2607:f8b0:4864:20::82c]) by mimas.w3.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from <mikeadouglass@gmail.com>) id 1kajdf-0001iV-HX for ietf-http-wg@w3.org; Thu, 05 Nov 2020 18:05:37 +0000
Received: by mail-qt1-x82c.google.com with SMTP id m14so1717084qtc.12 for <ietf-http-wg@w3.org>; Thu, 05 Nov 2020 10:05:35 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language; bh=fmY1A8ycOE+CYl8ml85mtFDHFc+NNeSfrv/gGmlcdIw=; b=GqTERCpzwWNP6TssvRxapNOqUnf9STpWUDiAYukVCEI4JsZbHb9B8sHYlPJk1GjbOn tlFFL36VZWWMXOMP1RyjojA8kjUiKNCIjOV6hRlXZpa4ixQh5LvRjbUyZGR27WwtlPPz nlYPTT9xNJCSrbmx5DVu5ZebYiqER/CfYqyhMu6SjIhOu4kd0rYGDIa4yuJsBxv/7O67 w9KzXdcXR5mzyn9Lm+mtbJA6GpFloWut1PSrj36uxmvUTQyqaoX2nkYKJj3LlFsjXawU k1FOjps4lPJohR1qWO7ohTeT8wIsh28UaZ8rGKjSlLVp68T7DbZaqrwSil97Lp7Jv1Rs jStw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=fmY1A8ycOE+CYl8ml85mtFDHFc+NNeSfrv/gGmlcdIw=; b=g5XVeDrj0T3Wior6OuSxE9TgdyGTE9x8pLGXcvshNpgvUQ9Xfsk6JwRaAD1wt4vTTI lTz3DTajBJ5PxNFFGwNx+3o+2g8ZM9uv+sq2Zv1ISr0CL8kowzQn0IkiaOZAtHCj4a2+ H17l17Po2xHN1YtL42vo1egaN8ydOeV4JVoAAbO7lDK4cjXOT91aZ64r/Fg6U1sF2YR7 HQEmTLMo2tTBWwq8FTbgBExgtOACm35F0zIouhel8XBD+I6kMF2GUZk0kbF/Rw7VGAT2 qflic515A5o0hqOWv0NLo0p8ujml86bDNV4XuOwgAyLn0nq4vkMZrNWibl2MP2P/AATC 3vWQ==
X-Gm-Message-State: AOAM530Pf9EX7QiQz+7DfSGjIG3q69V3bGwQDDK4z9/DMmXUuW/6L4P6 k2rSABW/Z+xqxrEcc+RkijUaLvQ2gUmO7w==
X-Google-Smtp-Source: ABdhPJw2nqLpas+zsY/WVz7i4ij9Gw1yZ+nt88QYQtBkBrdvC/cN4ebBpY0wtaTpe/otFxPkffpA8Q==
X-Received: by 2002:ac8:51cd:: with SMTP id d13mr3181125qtn.148.1604599524429; Thu, 05 Nov 2020 10:05:24 -0800 (PST)
Received: from MBP-2019.nycap.rr.com (cpe-74-70-80-66.nycap.res.rr.com. [74.70.80.66]) by smtp.googlemail.com with ESMTPSA id g27sm1501261qkk.135.2020.11.05.10.05.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 05 Nov 2020 10:05:23 -0800 (PST)
To: James Fuller <jim@webcomposite.com>, Julian Reschke <julian.reschke@gmx.de>
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>
From: Michael Douglass <mikeadouglass@gmail.com>
Message-ID: <2c90fb7d-483c-fc8a-2406-859d3910494d@gmail.com>
Date: Thu, 05 Nov 2020 13:05:22 -0500
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.12.1
MIME-Version: 1.0
In-Reply-To: <CAEaz5mvdTNGtxkB26cp9NpTSr1kD5Bpb1t_LBBEX349yCqS2cg@mail.gmail.com>
Content-Type: multipart/alternative; boundary="------------A5265E80980048F926DE302F"
Content-Language: en-US
Received-SPF: pass client-ip=2607:f8b0:4864:20::82c; envelope-from=mikeadouglass@gmail.com; helo=mail-qt1-x82c.google.com
X-W3C-Hub-Spam-Status: No, score=-4.1
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1kajdf-0001iV-HX 6ae9f025c5299006f87a47d7cbcd5c53
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Call for Adoption: SEARCH method
Archived-At: <https://www.w3.org/mid/2c90fb7d-483c-fc8a-2406-859d3910494d@gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/38184
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>

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.

On 11/5/20 05:33, James Fuller wrote:
> On Thu, 5 Nov 2020 at 10:46, Julian Reschke <julian.reschke@gmx.de> wrote:
>> Am 04.11.2020 um 21:40 schrieb Austin Wright:
>>> ...
>>> I’m very much in favor of a safe variation of POST.
>>>
>>> However,
>>>
>>>> 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).
> +1 ... seems a reasonable compromise to me.
>
> Jim
>