Re: Call for Adoption: SEARCH method

Julian Reschke <julian.reschke@gmx.de> Fri, 27 November 2020 13:31 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 065D23A0B8A for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 27 Nov 2020 05:31:46 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.672
X-Spam-Level:
X-Spam-Status: No, score=-2.672 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, NICE_REPLY_A=-0.001, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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 pF5k0VSQJftG for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 27 Nov 2020 05:31:44 -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 92B183A0A7E for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 27 Nov 2020 05:31:44 -0800 (PST)
Received: from lists by lyra.w3.org with local (Exim 4.92) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1kidqD-0007p5-0o for ietf-http-wg-dist@listhub.w3.org; Fri, 27 Nov 2020 13:31:13 +0000
Resent-Date: Fri, 27 Nov 2020 13:31:13 +0000
Resent-Message-Id: <E1kidqD-0007p5-0o@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 1kidqB-0007n8-Tr for ietf-http-wg@listhub.w3.org; Fri, 27 Nov 2020 13:31:11 +0000
Received: from mout.gmx.net ([212.227.15.19]) 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 1kidq7-0007SG-IC for ietf-http-wg@w3.org; Fri, 27 Nov 2020 13:31:11 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1606483854; bh=Db5zQJo6EKdqqv6MSBw4fe3CtkhRXe7n4W/2vc42myk=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=Rn3maEXALCdi4qlTIT/wECOeFpHsTo1joFsUHBf3kZySMiR6FX8qRO/Pf9jCUhAjX /iu/eW4Ny1DGlRAY/q/MTSbEfeUFNuOxVr+B0EwmqEum+CMkZF+7A/SfyerBPDpnnx hFSW3nYBQlbwkz5vBR3DgoNYXdzwGSDYLLs6i1Fs=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from [192.168.1.236] ([217.91.35.233]) by mail.gmx.com (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M7sDg-1knZWO2Mqo-004zGg; Fri, 27 Nov 2020 14:30:54 +0100
To: Asbjørn Ulsberg <asbjorn@ulsberg.no>, James Fuller <jim@webcomposite.com>
Cc: Greg Wilkins <gregw@webtide.com>, HTTP Working Group <ietf-http-wg@w3.org>
References: <F0556EC2-D5AD-47FF-A780-15949F57A911@mnot.net> <5C86F8CE-3075-48C7-BFA0-B7E202225829@acm.org> <CABP7RbeA8mj=sQhRFx6cUnnGES9=fogy=94nWwWkuQDj2NBNfA@mail.gmail.com> <00838246-acb5-6ad3-5864-9cce8521d9ca@gmx.de> <CAAPGdfFVaiQduehRvX8e0jeKr6LV06cM5UCPmBxyNr1xkNEbjQ@mail.gmail.com> <CAEaz5mtYOuEHJyP9H4HD8VyRR5Wj8GkHaYws1iGFFoH3_3vh9w@mail.gmail.com> <CAEdRHi42CFu1EFTPTSzpBOiz4_aVhSXTE=92mGkWrkB3yJSVyQ@mail.gmail.com>
From: Julian Reschke <julian.reschke@gmx.de>
Message-ID: <3e89e1e7-56aa-f7a8-d6a7-5d4ec27a3be6@gmx.de>
Date: Fri, 27 Nov 2020 14:30:54 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0
MIME-Version: 1.0
In-Reply-To: <CAEdRHi42CFu1EFTPTSzpBOiz4_aVhSXTE=92mGkWrkB3yJSVyQ@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K1:/9ipy+Dboe8m9DV0DbqKHrOSoz80SkQ74tyme63GDlRQaKQ9f7l wiQo/exFhe6OGftbHSQcixZYFx15tuxA18gWa7JS79NsfhCczh2CVIXfNzNlJvqDeBHUs2/ Z70DphECcyInQg6WxjzMSPft3YW610GEKGyH23vl6BwxIyAoPFO3aA5T/J8L2T+R5kGcBZg GIZe9YIt7PrZcsgni6lgA==
X-UI-Out-Filterresults: notjunk:1;V03:K0:E++LWWr8cUs=:GNJrfQnpswpmwJ/TOUFPTv ExALKjOeqURssOF4MTc+Qze7Q1em7rkm74yzZY8Yk9G85TxnayKM2hyBLt0PcRLHpkg42zuqK PesCNvLgRn2lfSfgIadMIPMzLLFQHMoi53GuZsLK1+NyNffLlhy1xLEFHydNubvoVVZN2g/rA KQmethB/K2s0AUmgE3WBcH/8LdWZ9d1cVaYxPzSrIkwP1XKDbfJKo9TwGpK4dDh9vpoqJLgE6 QdDUX9MZi+QvFysaZ13VqBacaOZJqeq87D8KuqVXnHEk/vojMNKLzCf9l/wPEL0wO0FMv+X6D IZ0PHFdcJ5ei6zBmlepb9wDEfBQ4d749O2YqLk+wOJrH3OaIF/xfvDmTDztxecOwfVq0vtZ4J p1qsC0q2Esy76YVvJDIF6QjZ7sMCPxhmivx6s1rJOU9IrfwhFxDzy7SrK3ITzfBy/Kqmf2y35 FNMimYQQDiKeQ90/moIrUBnPFTrH/FnMow4vbhZIUX7sjIO5zmWdnMwO7wPWpSCIGCwY0z4am WCBWrlGQnee5rPm8nqAILpOzy6pJ9154M1au+pvzt2ct51eUc9zZRhRdY02UlNwbNlxXtOu+U J0u3XHtoD04xxJ+PN+zj1K6G2hYQdJpKRrpOXjgyFRlQttF6VF0vTWW/lyYagiiQVcGcBtG32 LGnEIJb5hinhr72z7x971vVXZBtu2FuQS4wpn3ZihCm5io0NeMjXXiAi+hcVK25GzPYPJg0If v3pX6D+YlOcNL/BQtmQC4JkdTqn5DblwYfoeclnsWdf15UwYsBiE9q+b/ylA6OwBw63rAaF+c DWn1uWf3/wDQzusgxDz4v2rXS0iXY2pLY9TtB5qC9As27xvqFglZTmRcpWIu4amxDqKd+esHT Us0Ung/xgKKF5FPA+kUw==
Received-SPF: pass client-ip=212.227.15.19; 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 1kidq7-0007SG-IC c030b288c26d9b57e01f8f469821c46c
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Call for Adoption: SEARCH method
Archived-At: <https://www.w3.org/mid/3e89e1e7-56aa-f7a8-d6a7-5d4ec27a3be6@gmx.de>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/38258
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 27.11.2020 um 14:25 schrieb Asbjørn Ulsberg:
> tor. 19. nov. 2020 kl. 08:01 skrev James Fuller <jim@webcomposite.com>:
>
>> it would help clarify what exactly s being proposed, as the potential
>> for developer confusion is high (because we all know what SEARCH
>> must mean, right ?).
>
> I agree. When I first brought this to the WG's attention, it was based
> on discussions around the use of GET with payload, which is both wrong
> and dangerous:
>
> https://github.com/elastic/elasticsearch/issues/16024
>
> In my view, SEARCH as currently specified only solves the first of
> five desirable properties of a new HTTP method:
>
> 1. Explicit support for a request payload.
> 2. Safe.
> 3. Idempotent.
> 4. Cacheable by default (keyed by payload).
> 5. Content-Type agnostic.

Hmmm?? It solves 1...3, unless I'm missing something.

5. Would be solved by this spec.

4. is non-trivial, and it would be good to solve that in general, not
just as a special case.

> Not attempting to solve any of the other properties is a missed
> opportunity, imho. I would support and implement the method
> regardless, but I would be much more in favor if we managed to give
> the method all of the five properties mentioned above.
>
> Wrt. cacheable by default, we may also consider a general HTTP header
> that can also be applied to POST, as suggested here:
>
> https://github.com/httpwg/http-extensions/issues/942
>
>> * does SEARCH naturally assume working on collection of resources (uri's) ?
>
> Not any more than GET with a query string?
>
>> * if we are not constraining result format (or content type eg. return
>> a text/uri-list) then what is different from a
>> GET with some meta data saying 'this is a search' ?
>
> The result of a SEARCH request should not impose any semantics on the
> response, imho. The semantics of the response is conveyed by its
> Content-Type, which the client can of course negotiate with the Accept
> header. Each item in the SEARCH result is not necessarily its own HTTP
> resource, although something like that would be possible with a multipart/*
> response Content-Type.

Yes.

Best regards, Julian