Re: New Version Notification for draft-snell-search-method-02.txt

Austin Wright <aaa@bzfx.net> Fri, 04 September 2020 00:41 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 BD28D3A1435 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 3 Sep 2020 17:41:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.749
X-Spam-Level:
X-Spam-Status: No, score=-2.749 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.249, MAILING_LIST_MULTI=-1, 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=bzfx.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 L-eX9NKGG7Gb for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 3 Sep 2020 17:41:28 -0700 (PDT)
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 9359D3A1472 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 3 Sep 2020 17:41:16 -0700 (PDT)
Received: from lists by lyra.w3.org with local (Exim 4.92) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1kDzkY-00039e-Ur for ietf-http-wg-dist@listhub.w3.org; Fri, 04 Sep 2020 00:38:44 +0000
Resent-Date: Fri, 04 Sep 2020 00:38:42 +0000
Resent-Message-Id: <E1kDzkY-00039e-Ur@lyra.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by lyra.w3.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <aaa@bzfx.net>) id 1kDzkV-00038t-Q2 for ietf-http-wg@listhub.w3.org; Fri, 04 Sep 2020 00:38:40 +0000
Received: from mail-io1-xd32.google.com ([2607:f8b0:4864:20::d32]) by titan.w3.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from <aaa@bzfx.net>) id 1kDzkT-0000h1-VE for ietf-http-wg@w3.org; Fri, 04 Sep 2020 00:38:39 +0000
Received: by mail-io1-xd32.google.com with SMTP id d190so5501387iof.3 for <ietf-http-wg@w3.org>; Thu, 03 Sep 2020 17:38:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bzfx.net; s=google; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=zOSPZob5wxv5fwbfrBGiFd2tIHqZdh2kLbZaso3ZF2E=; b=TvLYZmi61XtxW1jfoyASmLgmCMxSH0bRn8bq62vbYJt5iuT7uB1FGF5LMRc6iyp97L 0m2XsRg+6KFLfYsc3PqNoUfcAqjB+bhE4Ou04CnWI66SYFzYCk9U+EXGzPWjq9ZON3i1 zuCT6Xhsw8SuGlYjAFKsTlxSAv9rpl/TnCT8M=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=zOSPZob5wxv5fwbfrBGiFd2tIHqZdh2kLbZaso3ZF2E=; b=QG40OGoYD3Qnp1PE/pb2Z2FXW+PVAAr6glw1o9D5hzGal00aecwqu7/TNzvgVB1m95 s8I6UWrwXmYodf9/CSGaImIZcEjyXF8t4Li14Yl18CF8aXQVE+QkAgMMkKxPexunKHvn PWJnASoIol33s1xsMJSdfZ/K3XVIreJUD3K46WqYUhtnUkr2tr00zh/gxuTpPgMng+Me yU4LXYb4X8GYd2PD0Vpivf/5+8Hwdhz3EYYe5/2Uwvgsf4aTdZMLuzrhMeEEiTHs1KGJ 9Q0LDRG+49zCX3MW3WuPn+80PnUh6OX1XNUVNovw7rKku+LdNuIQXUHaA9+bfAn9ddtU bhqg==
X-Gm-Message-State: AOAM5338j4rqdtYoXE9JeFXQ6cu84E+s8SCMuEvJO6q6YxDRTKhsOpTu 5WBWye7k3CNiBiOfp1crmXL0X8R8GF1q2Q==
X-Google-Smtp-Source: ABdhPJz0nI7a68gK2nZh3z4fskZw+uOvS+1rVdHPfqZj6ztxPn2Q+gpkJhg+kngsffPU1Lwf9uRpSA==
X-Received: by 2002:a63:9d0f:: with SMTP id i15mr5000628pgd.413.1599178148510; Thu, 03 Sep 2020 17:09:08 -0700 (PDT)
Received: from [192.168.0.116] (71-223-176-196.phnx.qwest.net. [71.223.176.196]) by smtp.gmail.com with ESMTPSA id x3sm2201781pjf.42.2020.09.03.17.09.07 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 Sep 2020 17:09:07 -0700 (PDT)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.1\))
From: Austin Wright <aaa@bzfx.net>
In-Reply-To: <5b30cd06-baf5-c9f1-a291-d17601a4b8c7@gmx.de>
Date: Thu, 03 Sep 2020 17:09:06 -0700
Cc: ietf-http-wg@w3.org
Content-Transfer-Encoding: quoted-printable
Message-Id: <F1EE3961-62EE-418E-A498-5D0D26DEAFCF@bzfx.net>
References: <159904441175.28505.13258490642426765239@ietfa.amsl.com> <8016092d-b597-6c59-169c-494946ff6266@gmx.de> <9E8A2DB5-DEAE-4642-93E4-5D764F20D469@mnot.net> <bb506a4c-33cd-064d-759c-34e5f1cac1e3@gmx.de> <CAMRHeuyhwd0mjFC6-CSMnx4W0N_dpMVT_w9Rt+3NLOVR1QhsHQ@mail.gmail.com> <C119A398-0127-4E0C-BD95-4983B860B9C3@gbiv.com> <5b30cd06-baf5-c9f1-a291-d17601a4b8c7@gmx.de>
To: Julian Reschke <julian.reschke@gmx.de>
X-Mailer: Apple Mail (2.3608.120.23.2.1)
Received-SPF: pass client-ip=2607:f8b0:4864:20::d32; envelope-from=aaa@bzfx.net; helo=mail-io1-xd32.google.com
X-W3C-Hub-Spam-Status: No, score=-6.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1kDzkT-0000h1-VE 187a2559c6a2219086686aa4f87bb649
X-Original-To: ietf-http-wg@w3.org
Subject: Re: New Version Notification for draft-snell-search-method-02.txt
Archived-At: <https://www.w3.org/mid/F1EE3961-62EE-418E-A498-5D0D26DEAFCF@bzfx.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/37995
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 have three suggestions, in this order:

(1) Why not adopt the REPORT method? It seems to be defined with neutral semantics, or at least more neutral than SEARCH:

> A REPORT request is an extensible mechanism for obtaining information about a resource.

This definition sounds like a query, and I like the name: it suggests you’ll provide or receive some sort of report, generated by the server based on the payload.

(2) If we mint a new HTTP method, I favor QUERY.

(3) I’m not opposed to SEARCH, I figure the worst that could possibly happen would be some legacy Java app sees "Allow: SEARCH" and makes a WebDAV query to the resource, triggering an uncaught error due to the unexpected response, causing an infinite loop and overheating the CPU, setting everything on fire.

What I don’t like very much is the name. SEARCH suggests something very specific to me. I think of PATCH, a method where only certain media types make sense.

Austin Wright.

> On Sep 3, 2020, at 10:09, Julian Reschke <julian.reschke@gmx.de> wrote:
> 
> Am 03.09.2020 um 18:04 schrieb Roy T. Fielding:
>> ... > Note that is triggered by the media types, not the data format.
>> 
>> I don't see that as a limitation at all. Those general types don't
>> say anything useful for the recipient. That's why applications of XML
>> are supposed to use a more specific +xml media type instead, and we
>> can require that of future implementations without hindering XML as
>> a payload.
>> ...
> 
> Right.
> 
> Payloads in WebDAV regrettably use application/xml (or text/xml). That's
> hard to change now, but I'm tempted to register several more specific
> types for future use cases (like linking to a PROPFIND payload).
> 
> Best regards, Julian
>