Re: Call for Adoption: SEARCH method

Juan Barriteau <juan@barriteau.net> Tue, 06 April 2021 08:38 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 F423C3A16D1 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 6 Apr 2021 01:38:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.335
X-Spam-Level:
X-Spam-Status: No, score=-4.335 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, HTML_MESSAGE=0.001, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SBL_CSS=3.335, 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=barriteau-net.20150623.gappssmtp.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 eWmHU43vRBc8 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 6 Apr 2021 01:38:03 -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 E15973A16CB for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 6 Apr 2021 01:38:02 -0700 (PDT)
Received: from lists by lyra.w3.org with local (Exim 4.92) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1lThBX-0003qq-8x for ietf-http-wg-dist@listhub.w3.org; Tue, 06 Apr 2021 08:35:43 +0000
Resent-Date: Tue, 06 Apr 2021 08:35:43 +0000
Resent-Message-Id: <E1lThBX-0003qq-8x@lyra.w3.org>
Received: from www-data by lyra.w3.org with local (Exim 4.92) (envelope-from <juan@barriteau.net>) id 1lThBV-0003oY-EV for ietf-http-wg@listhub.w3.org; Tue, 06 Apr 2021 08:35:41 +0000
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 <juan@barriteau.net>) id 1lT785-0005Ch-MR for ietf-http-wg@listhub.w3.org; Sun, 04 Apr 2021 18:05:45 +0000
Received: from mail-qv1-xf2f.google.com ([2607:f8b0:4864:20::f2f]) by titan.w3.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from <juan@barriteau.net>) id 1lT782-0001Hs-U1 for ietf-http-wg@w3.org; Sun, 04 Apr 2021 18:05:45 +0000
Received: by mail-qv1-xf2f.google.com with SMTP id u3so2502939qvj.8 for <ietf-http-wg@w3.org>; Sun, 04 Apr 2021 11:05:42 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=barriteau-net.20150623.gappssmtp.com; s=20150623; h=mime-version:date:message-id:subject:from:to:user-agent; bh=jNMlSQTMeZ3H1nOMTl0ZgOOA5DYVxz34r0d7aRCcY3A=; b=Hh73CwLIElfJYk7b1KKi3/xsg5vBeJqU8vxw3HQufCXYo6dNUQiOW5iR8plPcFKdww XWdKZVHg5QbA63QhchI2mMlCbp2cTPZ7Zj3WswWelAUvCzw7NlgsOML54GI5BKe/Bauu G0mxZFY2f3fWV0SlKGEPPEX8udghN3H/D90wqFDONBulaEhs6dM15EUJW59OjKDXzO/l Z4oNdrg7faudAIbenTZdWcpHL3PxjxNXxVoeGhgoCFU2FSTYgpe9+FBZSkL3Qxl7d3oo xC0sk9yU/3vWEUvLKsmmBYxm1aDjhlxb7RnSIhPCaIp6cbH1lyb0IuKwUXwg7w8a467k rRTQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :user-agent; bh=jNMlSQTMeZ3H1nOMTl0ZgOOA5DYVxz34r0d7aRCcY3A=; b=lDAbm61/28yR4+JuzP+UWlfOi+gQggrY1YxJOYqbifkJdF6+UDSAS5HKoiwRRMrr/6 RScRBNl8oy5n3UOQHVZCN5li/Eu38Z/H7LDQearFlnspy0Y9jTyJ5JNoX3v+0kwCvOvr JpvMP5qGn9xjWdP3PFVbbWYyC1oexnihqxbh3PUjUyw2Riy1MSWnbVY6SRCMEyRu2Toc cZ9DQsOPYW9ZzbsTWU/QlYyCyDI3d04DL10CRAsy1v7+qLjoGWtlhy345iHwcM7o8uDN r4v7DdNcR9+CWdioIw5PLGZ8qj5ZJbVppZom8+nE+Z3F3KQru0/aKD3lZgq+/FUs9x47 Qn+A==
X-Gm-Message-State: AOAM5337mA5mH93KtzPJRb9y/HZvW+VUDScf63kPblKKhsExmnz8RCsk lEL9u45148Daof5TbFXADuW2j1Ov/5K7uQ==
X-Google-Smtp-Source: ABdhPJy+sZY5QMktECZ/qHYivWB9a16u48fhyvW6lwkzQ+4YVnPGYxDAs/ZV3Sm4BCJfq1g1QICiVA==
X-Received: by 2002:ad4:4c83:: with SMTP id bs3mr20793306qvb.41.1617559531338; Sun, 04 Apr 2021 11:05:31 -0700 (PDT)
Received: from [192.168.1.53] ([201.234.236.218]) by smtp.gmail.com with ESMTPSA id q2sm11808342qkq.59.2021.04.04.11.05.30 for <ietf-http-wg@w3.org> (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 04 Apr 2021 11:05:30 -0700 (PDT)
Content-Type: multipart/alternative; boundary="----=_NextPart_52196656.558147001206"
MIME-Version: 1.0
Date: Sun, 04 Apr 2021 14:05:23 -0400
Message-ID: <Mailbird-74d3d62d-3683-4ead-abd4-ce51dd007262@barriteau.net>
From: Juan Barriteau <juan@barriteau.net>
To: ietf-http-wg@w3.org
User-Agent: Mailbird/2.9.27.0
X-Mailbird-ID: Mailbird-74d3d62d-3683-4ead-abd4-ce51dd007262@barriteau.net
Received-SPF: pass client-ip=2607:f8b0:4864:20::f2f; envelope-from=juan@barriteau.net; helo=mail-qv1-xf2f.google.com
X-W3C-Hub-DKIM-Status: validation passed: (address=juan@barriteau.net domain=barriteau-net.20150623.gappssmtp.com), signature is good
X-W3C-Hub-Spam-Status: No, score=-0.6
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1lT782-0001Hs-U1 4264634a877a1d7f47d666271a209562
X-caa-id: d724994e34
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Call for Adoption: SEARCH method
Archived-At: <https://www.w3.org/mid/Mailbird-74d3d62d-3683-4ead-abd4-ce51dd007262@barriteau.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/38688
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>

Maybe mine are silly questions, I'm pretty sure I have a lack of context, but I'll risk it, just don't be too harsh with the stranger... 

Why not simply name SEND this method which has body but is not intended to change the state of the resource? I perceive a method named like this as a natural companion for the current standard methods.

If I were a server I would feel comfortable receiving a request preceded for a SEND and proclaiming "my body contains a search query" or a SEND saying "my body contains some equations to solve".

But as a server I neither would have problems receiving those same requests simply using SEARCH and CALC methods respectively, I got it, having a SEARCH method could be efficient from the application perspective because the semantic obviousness dispenses the need to explain what is the body for, same as having a CALC method would do.

But, Isn't it better to standardize something more "general" like the SEND and emphasize and reinforce the existing permit to use non-standard methods? as far as I understand, and please, excuse me and bring me to the light if I'm wrong, I should be able to use SEARCH, CALC, CONVERT, BEAUTIFY, COMPRESS, ENCRYPT, TRANSFORM, EVALUATE, ARMONIZE, CONVERT, NORMALIZE, TRANSLATE, PRETTIFY, ANAGRAMIZE, MINIFY, COMPILE, CONCATENATE, MAKETEA or any other non-standard method if it works for me and and my resources, that without worrying about firewalls and servers rejecting them or the OpenAPI Initiative not supporting them. Is it like that?

Best regards,

Juan

> Am 02.12.2020 um 04:52 schrieb Tommy Pauly:
> > Thanks for all of the feedback and detailed discussion on draft-snell-search-method!
> >
> > Based on the input, we believe that the working group has consensus to adopt this item. Many of the > details, including the method name, will continue to be discussed as this is adopted, but the scope of > work is to define a method that has the behavior of a GET with a body.
> >
> > Best,
> > Tommy & Mark
> > ...
> 
> I've been sitting on this until the http-core drafts were finished (for
> some value of "finished").
> 
> Now that these are out, I'v republished the document that was adopted as
>   draft-ietf-httpbis-safe-method-w-body-00:
> 
> > A New Internet-Draft is available from the on-line Internet-Drafts directories.
> > This draft is a work item of the HTTP WG of the IETF.
> >
> >         Title           : HTTP SEARCH Method
> >         Authors         : Julian Reschke
> >                           Ashok Malhotra
> >                           James M Snell
> > Filename        : draft-ietf-httpbis-safe-method-w-body-00.txt
> > Pages           : 8
> > Date            : 2021-03-31
> >
> > Abstract:
> >    This specification updates the definition and semantics of the HTTP
> >    SEARCH request method originally defined by RFC 5323.
> >
> > Editorial Note
> >
> >    Discussion of this draft takes place on the HTTP working group
> >    mailing list (ietf-http-wg@w3.org), which is archived at
> >    https://lists.w3.org/Archives/Public/ietf-http-wg/.
> >
> >    This note is to be removed before publishing as an RFC.
> >
> >    Working Group information can be found at https://httpwg.org/; source
> >    code and issues list for this draft can be found at
> >    https://github.com/httpwg/http-extensions/labels/safe-method-w-body.
> >
> >
> > The IETF datatracker status page for this draft is:
> > https://datatracker.ietf.org/doc/draft-ietf-httpbis-safe-method-w-body/
> >
> > There is also an HTML version available at:
> > https://www.ietf.org/archive/id/draft-ietf-httpbis-safe-method-w-body-00.html
> 
> (note that I have used a draft filename that makes it clear the method
> name is really not cast in stone yet)
> 
> Best regards, Julian