Re: HTTP Status 308 (Permanent Redirect)

Mark Nottingham <mnot@mnot.net> Thu, 13 February 2014 01:14 UTC

Return-Path: <ietf-http-wg-request@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 (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 92EFB1A00A3 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 12 Feb 2014 17:14:23 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.45
X-Spam-Level:
X-Spam-Status: No, score=-7.45 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.548, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham
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 hWpCrz32Mhbk for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 12 Feb 2014 17:14:20 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id B47C31A0083 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 12 Feb 2014 17:14:20 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1WDkrE-0007gO-Kj for ietf-http-wg-dist@listhub.w3.org; Thu, 13 Feb 2014 01:12:52 +0000
Resent-Date: Thu, 13 Feb 2014 01:12:52 +0000
Resent-Message-Id: <E1WDkrE-0007gO-Kj@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1WDkr4-0007d0-AK for ietf-http-wg@listhub.w3.org; Thu, 13 Feb 2014 01:12:42 +0000
Received: from mxout-07.mxes.net ([216.86.168.182]) by lisa.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1WDkr3-000241-1T for ietf-http-wg@w3.org; Thu, 13 Feb 2014 01:12:42 +0000
Received: from [192.168.1.55] (unknown [118.209.47.254]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id EF66C22E1FA; Wed, 12 Feb 2014 20:12:17 -0500 (EST)
Content-Type: text/plain; charset="iso-8859-1"
Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <52F37FF8.6060107@gmx.de>
Date: Thu, 13 Feb 2014 12:12:13 +1100
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <BA58C5EA-8155-424A-BB1E-81651527CEB6@mnot.net>
References: <52F37FF8.6060107@gmx.de>
To: "Julian F. Reschke" <julian.reschke@gmx.de>
X-Mailer: Apple Mail (2.1827)
Received-SPF: pass client-ip=216.86.168.182; envelope-from=mnot@mnot.net; helo=mxout-07.mxes.net
X-W3C-Hub-Spam-Status: No, score=-3.4
X-W3C-Hub-Spam-Report: AWL=-3.399, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1WDkr3-000241-1T ad924c90bece6cec72e3b2ec6e9bb248
X-Original-To: ietf-http-wg@w3.org
Subject: Re: HTTP Status 308 (Permanent Redirect)
Archived-At: <http://www.w3.org/mid/BA58C5EA-8155-424A-BB1E-81651527CEB6@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/22213
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: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

LGTM.

On 6 Feb 2014, at 11:28 pm, Julian Reschke <julian.reschke@gmx.de> wrote:

> Hi there,
> 
> this status code was defined in draft-reschke-http-status-308-07 and approved as Experimental RFC almost two years ago:
> 
>  <https://datatracker.ietf.org/doc/draft-reschke-http-status-308/>
> 
> It's been sitting in the RFC Editor queue since then, waiting for the HTTPbis specs to arrive.
> 
> When it was written, the status code description was consistent with the HTTPbis P2 draft that was current back then -- see <http://greenbytes.de/tech/webdav/draft-ietf-httpbis-p2-semantics-19.html#rfc.section.7.3>.
> 
> Since then, the definition was rephrased quite a bit, and I believe it would be good to update the prose in the 308 definition accordingly in order to avoid confusion.
> 
> The proposed diffs are here: <http://greenbytes.de/tech/webdav/draft-reschke-http-status-308-latest-from-previous.diff.html> (which also contains some more changes due to HTTPbis P2 section number changes).
> 
> The full text of the section would change from:
> 
>> 3.  308 Permanent Redirect
>> 
>>   The target resource has been assigned a new permanent URI and any
>>   future references to this resource SHOULD use one of the returned
>>   URIs.  Clients with link editing capabilities ought to automatically
>>   re-link references to the effective request URI (Section 5.5 of
>>   [draft-ietf-httpbis-p1-messaging]) to one or more of the new
>>   references returned by the server, where possible.
>> 
>>   Caches MAY use a heuristic (see [draft-ietf-httpbis-p6-cache],
>>   Section 2.3.1.1) to determine freshness for 308 responses.
>> 
>>   The new permanent URI SHOULD be given by the Location field in the
>>   response ([draft-ietf-httpbis-p2-semantics], Section 10.5).  A
>>   response payload can contain a short hypertext note with a hyperlink
>>   to the new URI(s).
>> 
>>      Note: This status code is similar to 301 Moved Permanently
>>      (Section 7.3.2 of [draft-ietf-httpbis-p2-semantics]), except that
>>      it does not allow rewriting the request method from POST to GET.
> 
> to:
> 
>> 3.  308 Permanent Redirect
>> 
>>   The 308 (Permanent Redirect) status code indicates that the target
>>   resource has been assigned a new permanent URI and any future
>>   references to this resource ought to use one of the enclosed URIs.
>>   Clients with link editing capabilities ought to automatically re-link
>>   references to the effective request URI (Section 5.5 of
>>   [draft-ietf-httpbis-p1-messaging]) to one or more of the new
>>   references sent by the server, where possible.
>> 
>>   The server SHOULD generate a Location header field
>>   ([draft-ietf-httpbis-p2-semantics], Section 7.1.2) in the response
>>   containing a preferred URI reference for the new permanent URI.  The
>>   user agent MAY use the Location field value for automatic
>>   redirection.  The server's response payload usually contains a short
>>   hypertext note with a hyperlink to the new URI(s).
>> 
>>   A 308 response is cacheable by default; i.e., unless otherwise
>>   indicated by the method definition or explicit cache controls (see
>>   [draft-ietf-httpbis-p6-cache], Section 4.2.2).
>> 
>>      Note: This status code is similar to 301 (Moved Permanently)
>>      ([draft-ietf-httpbis-p2-semantics], Section 6.4.2), except that it
>>      does not allow changing the request method from POST to GET.
> 
> Although this hasn't been a WG work item, it would be awesome if a few people could review the proposed change and give feedback about whether this would be an acceptable change prior to publication as RFC.
> 
> Best regards, Julian
> 

--
Mark Nottingham   http://www.mnot.net/