Re: NEW PREFERENCE - location

Patrick McManus <mcmanus@ducksong.com> Wed, 08 May 2019 23:46 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 080EE1201C8 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 8 May 2019 16:46:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.998
X-Spam-Level:
X-Spam-Status: No, score=-2.998 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.001, HTML_MESSAGE=0.001, MAILING_LIST_MULTI=-1, 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=ducksong.com header.b=cMxO5baj; dkim=pass (2048-bit key) header.d=outbound.mailhop.org header.b=SEWeMz07
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 esQV1UgsUSsx for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 8 May 2019 16:46:15 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [IPv6:2603:400a:ffff:804:801e:34:0:38]) (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 6325112016B for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 8 May 2019 16:46:15 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.89) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1hOWDa-0008OE-D7 for ietf-http-wg-dist@listhub.w3.org; Wed, 08 May 2019 23:43:22 +0000
Resent-Date: Wed, 08 May 2019 23:43:22 +0000
Resent-Message-Id: <E1hOWDa-0008OE-D7@frink.w3.org>
Received: from titan.w3.org ([2603:400a:ffff:804:801e:34:0:4c]) by frink.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from <mcmanus@ducksong.com>) id 1hOWDX-0008NN-5q for ietf-http-wg@listhub.w3.org; Wed, 08 May 2019 23:43:19 +0000
Received: from outbound1g.eu.mailhop.org ([52.28.6.212]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from <mcmanus@ducksong.com>) id 1hOWDT-0000JV-3I for ietf-http-wg@w3.org; Wed, 08 May 2019 23:43:18 +0000
ARC-Seal: i=1; a=rsa-sha256; t=1557358973; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=rW7IDLL6QeNwxvMx4xe917EcaiCixZX2SSjBZ/P6KS0l6EkEHD8/bAQHRzrFm3g5GnqCNd91QA2Y3 p/IBWvC4CyQ8+0PasKeITSG6qulIKIaWmRgdvYk2TZLwRs3um5JjwM7X202sGg9PfeP1EDRa7ZdASC aF0FHW/YnwuQChu6jckSdIBfhtfLIV4FH90RR61e7k0X43zCqyhsu2wG1S5LtV2Ha8sQuEUP9w+zSF WTCrQRkCO43r5iLv2pGI8wf5HXV+BReFzdth3JdOq6Wek0SnQ0B1Lc0ozMDClfrk49KVhWNrHzWZVu ovJnPQvw+U0Se8xUr5K5R5avOzKhhkA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-type:cc:to:subject:message-id:date:from:in-reply-to:references: mime-version:dkim-signature:dkim-signature:from; bh=LqInuxIVBzoFiICvEFG/ajIyjnsSrYcZ+F8onbolDmY=; b=b2TfOKjgpS9jZ9hok1ejeKNoFETPvHS8DwwIOz7e6oVRcLnE2T6ja36uL0zDObgyWLVaotrnKV7a8 EpvP1pl144RHCc1yfFmny1+pWuzN7XRb8ochXlcEdvnYXYU1mHF5y8NNl2cZN1GZNYPdUNYJFj6Qlm 6JKPu4g81qfz/dsxRt7Jj/hU4xGVtibeuEOCgGiCuBIwUu4PGW8zjz7ym7UMBFY3aTS/8+Ub1jvimZ iyDNwm8lMa5a0q2JRL7Pe5dX15kT7M1bK01mJs6luVXV9WTbdSLTzUf8TM4aPiWCAXPunhDuW4Olxa Q2weD4hTCxCGCNq6FKGFQrbJygRc8oA==
ARC-Authentication-Results: i=1; outbound3.eu.mailhop.org; spf=pass smtp.mailfrom=ducksong.com smtp.remote-ip=209.85.167.47; dmarc=none header.from=ducksong.com; arc=none header.oldest-pass=0;
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ducksong.com; s=duo-1537391512170-ea99bbb3; h=content-type:cc:to:subject:message-id:date:from:in-reply-to:references: mime-version:from; bh=LqInuxIVBzoFiICvEFG/ajIyjnsSrYcZ+F8onbolDmY=; b=cMxO5bajN8Ag1ZhS8DU9p9MFcqg4I59N1bU4HIuDaa/ZNbW4sTBRfWIJZJqm5gAxG0wkhRNHq6sm+ 8x3cajMMDyJNBuqGlMPDMxuflYRSJ2Ks8oVvKkMW5OGq8573Bn5OLk0sGknTg2vo6UnttPdqp9XRtO Thrv6O1R7xN3C/eE=
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-type:cc:to:subject:message-id:date:from:in-reply-to:references: mime-version:from; bh=LqInuxIVBzoFiICvEFG/ajIyjnsSrYcZ+F8onbolDmY=; b=SEWeMz07rr8yaeql/mnwCPySd030hjPjv/OOcG8UBjwzKVuaZt/m0xdPeTOQHinVGhfdgAYW0hREB WAnTgoe7nk1LYK+jbjrEhgZ54sufnyO4/hcIXRqlTllegkst13zyIXMXRxJ2HrL1YqosRGfJxzjFZ8 V07lUIKiBmAsndt4jdZMSGa9qf7M7lIn+XeP1i5G4M2NoVAZ3rf3JxbWnrA64IodduN4J6z5v4umqs yQ7Zw3he8DaGr/T/OIIkRGlTOG5aoO0SZZP8Ixq7BS84sY8f3bRLAbmMCYQLoasvWMlr2e6+JZCGHR wozXi0E4V/70L+H4OmiexchG9Vm7GBA==
X-MHO-RoutePath: bWNtYW51cw==
X-MHO-User: fde6c30a-71ea-11e9-908b-352056dbf2de
X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information
X-Originating-IP: 209.85.167.47
X-Mail-Handler: DuoCircle Outbound SMTP
Received: from mail-lf1-f47.google.com (unknown [209.85.167.47]) by outbound3.eu.mailhop.org (Halon) with ESMTPSA id fde6c30a-71ea-11e9-908b-352056dbf2de; Wed, 08 May 2019 23:42:51 +0000 (UTC)
Received: by mail-lf1-f47.google.com with SMTP id u27so155088lfg.10 for <ietf-http-wg@w3.org>; Wed, 08 May 2019 16:42:50 -0700 (PDT)
X-Gm-Message-State: APjAAAWMIDyGCTH04dXn98kZbqwQJOoCAxEp9i7j/ii26TA0R+YK+U/e jR1Y+aTHaCfJt0iiWLvILo86mcOZjqBnjVOTJaY=
X-Google-Smtp-Source: APXvYqwypfBf0bAe8eNT0cIOu9oCUUiVnafOeQENitNJ9wRfBprwFEBE9ZR8w0n7I2H8cBk64cvfLnEl9R57c06Ze0Q=
X-Received: by 2002:a19:ee11:: with SMTP id g17mr435814lfb.5.1557358970638; Wed, 08 May 2019 16:42:50 -0700 (PDT)
MIME-Version: 1.0
References: <CAEvuJbZN9abyEQTnnHEi9vnPXhdCTSQbvz7_MORgn+6H6gd7Sg@mail.gmail.com> <CAOdDvNrotbuXOMRr-eM0cUWYYiKrk0409rX1vE9OXg+ZVfGtMw@mail.gmail.com> <CAEvuJbYrx+rGNG1C8zJaOgFJaFyoAQeJqiqHXQvRJHhgz3uQbQ@mail.gmail.com>
In-Reply-To: <CAEvuJbYrx+rGNG1C8zJaOgFJaFyoAQeJqiqHXQvRJHhgz3uQbQ@mail.gmail.com>
From: Patrick McManus <mcmanus@ducksong.com>
Date: Wed, 08 May 2019 19:42:39 -0400
X-Gmail-Original-Message-ID: <CAOdDvNov8Qpw56ff=wJnVatOYPiwKDgaG-dgy8bT4mwGd=fY5A@mail.gmail.com>
Message-ID: <CAOdDvNov8Qpw56ff=wJnVatOYPiwKDgaG-dgy8bT4mwGd=fY5A@mail.gmail.com>
To: Matthew Bishop <matt@thebishops.org>
Cc: Patrick McManus <mcmanus@ducksong.com>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="0000000000003b9d3b058868e40e"
Received-SPF: permerror client-ip=52.28.6.212; envelope-from=mcmanus@ducksong.com; helo=outbound1g.eu.mailhop.org
X-W3C-Hub-Spam-Status: No, score=-5.2
X-W3C-Hub-Spam-Report: AWL=-0.077, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, W3C_AA=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1hOWDT-0000JV-3I 0c07a6a8e1cc4046a079b46bf61c5701
X-Original-To: ietf-http-wg@w3.org
Subject: Re: NEW PREFERENCE - location
Archived-At: <https://www.w3.org/mid/CAOdDvNov8Qpw56ff=wJnVatOYPiwKDgaG-dgy8bT4mwGd=fY5A@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/36618
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>

Hi Matthew, thanks for the replies.

I think it might be helpful to drill down on when a client would want to
offer "stay". You make a compelling case for "redirect" - but is this
really a preference or is it some way of saying you wish the server were
doing something better right now?

You certainly don't need an implementation to write a draft; but the need
for interoperability between implementations is something the group
considers when deciding whether one should proceed. There are no strict
rules about it - but experience is always welcomed.

-Patrick




On Mon, May 6, 2019 at 3:02 PM Matthew Bishop <matt@thebishops.org> wrote:

> Mark, I misunderstood the submission policy at
> https://tools.ietf.org/html/rfc7240#section-5.1 to mean a specification
> had to be referenced. I see now that a specification has to be submitted
> with the completed preference template therein. I will write up a
> specification submission for this preference.
>
> Patrick, this preference is based on experience and common best practices
> for handling POST requests from the client. An API that accepts POSTs will
> usually return a 201 Created with a Location, but I have found that clients
> actually want to specify that a 303 See Other is returned so their client
> can redirect to the Location URL and save them the coding process of
> directly fetching the Location resource in client code.
>
> This preference is similar to the "return=representation" preference
> except that the client wants an actual redirect to occur to run the second
> fetch through the caching mechanisms. The resource at Location may already
> be cached.
>
> Does an exact implementation need to exist first? I was thinking of using
> the preference beforehand but thought that was not appropriate.
>
> On Mon, May 6, 2019 at 7:09 AM Patrick McManus <mcmanus@ducksong.com>
> wrote:
>
>> Hello Matt,
>>
>> In addition to Mark's advice, can you help the group understand the scope
>> of this mail?
>>
>> Is it proposed based on experience or an idea? Are there interoperable
>> implementations yet?  In what instance would you expect stay to be used?
>> Why would this be a client side preference?
>>
>> Thanks!
>>
>>
>> On Sun, May 5, 2019 at 11:19 AM Matthew Bishop <matt@thebishops.org>
>> wrote:
>>
>>> o  Preference: location
>>>
>>> o  Value: One of either "redirect" or "stay"
>>>
>>> o  Description: In state change requests, the client prefers the server
>>> to return either a
>>>       redirect status code or a 2xx status code when a response contains
>>> a Location
>>>       header. The value "redirect" indicates a 303 See Other should be
>>> returned. The value
>>>       "stay" indicates an appropriate 2xx status should be returned.
>>>
>>> o  Reference: HTTP/1.1: Semantics and Content, section 4.4.4 303 See
>>> Other
>>>       [https://tools.ietf.org/html/rfc7231#section-6.4.4]
>>>
>>> o  Notes: This preference is intended to be used with HTTP methods that
>>> return a Location
>>>       header and either a 303 or a 2xx status code.
>>>
>>>       This preference supports the Post/Redirect/Get pattern.
>>> Wikipedia's entry for this
>>>       pattern explains it's value in client interactions. See
>>>       https://en.wikipedia.org/wiki/Post/Redirect/Get for details.
>>>
>>