Ignore:
Timestamp:
30/10/13 10:23:37 (7 years ago)
Author:
julian.reschke@…
Message:

Make From: header field allow only addr-spec (reverts unintended change from 2616) (see #504)

Location:
draft-ietf-httpbis/latest
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • draft-ietf-httpbis/latest/httpbis.abnf

    r2382 r2443  
    2424Expect = "100-continue"
    2525Expires = HTTP-date
    26 From = mailbox
     26From = addr-spec
    2727GMT = %x47.4D.54 ; GMT
    2828
     
    6767accept-params = weight *accept-ext
    6868acceptable-ranges = ( *( "," OWS ) range-unit *( OWS "," [ OWS range-unit ] ) ) / "none"
     69addr-spec = <addr-spec, defined in [RFC5322], Section 3.4.1>
    6970asctime-date = day-name SP date3 SP time-of-day SP year
    7071asterisk-form = "*"
     
    139140last-byte-pos = 1*DIGIT
    140141last-chunk = 1*"0" [ chunk-ext ] CRLF
    141 mailbox = <mailbox, defined in [RFC5322], Section 3.4>
    142142media-range = ( "*/*" / ( type "/*" ) / ( type "/" subtype ) ) *( OWS ";" OWS parameter )
    143143media-type = type "/" subtype *( OWS ";" OWS parameter )
  • draft-ietf-httpbis/latest/p2-semantics.html

    r2436 r2443  
    445445  }
    446446  @bottom-center {
    447        content: "Expires May 1, 2014";
     447       content: "Expires May 3, 2014";
    448448  }
    449449  @bottom-right {
     
    490490      <meta name="dct.creator" content="Reschke, J. F.">
    491491      <meta name="dct.identifier" content="urn:ietf:id:draft-ietf-httpbis-p2-semantics-latest">
    492       <meta name="dct.issued" scheme="ISO8601" content="2013-10-28">
     492      <meta name="dct.issued" scheme="ISO8601" content="2013-10-30">
    493493      <meta name="dct.replaces" content="urn:ietf:rfc:2616">
    494494      <meta name="dct.abstract" content="The Hypertext Transfer Protocol (HTTP) is an application-level protocol for distributed, collaborative, hypertext information systems. This document defines the semantics of HTTP/1.1 messages, as expressed by request methods, request header fields, response status codes, and response header fields, along with the payload of messages (metadata and body content) and mechanisms for content negotiation.">
     
    518518            <tr>
    519519               <td class="left">Intended status: Standards Track</td>
    520                <td class="right">October 28, 2013</td>
     520               <td class="right">October 30, 2013</td>
    521521            </tr>
    522522            <tr>
    523                <td class="left">Expires: May 1, 2014</td>
     523               <td class="left">Expires: May 3, 2014</td>
    524524               <td class="right"></td>
    525525            </tr>
     
    550550            in progress”.
    551551         </p>
    552          <p>This Internet-Draft will expire on May 1, 2014.</p>
     552         <p>This Internet-Draft will expire on May 3, 2014.</p>
    553553      </div>
    554554      <div id="rfc.copyrightnotice">
     
    21992199               <h3 id="rfc.section.5.5.1"><a href="#rfc.section.5.5.1">5.5.1</a>&nbsp;<a href="#header.from">From</a></h3>
    22002200               <p id="rfc.section.5.5.1.p.1">The "From" header field contains an Internet email address for a human user who controls the requesting user agent. The address
    2201                   ought to be machine-usable, as defined by "mailbox" in <a href="http://tools.ietf.org/html/rfc5322#section-3.4">Section 3.4</a> of <a href="#RFC5322" id="rfc.xref.RFC5322.1"><cite title="Internet Message Format">[RFC5322]</cite></a>:
    2202                </p>
    2203                <div id="rfc.figure.u.35"></div><pre class="inline"><span id="rfc.iref.g.30"></span>  <a href="#header.from" class="smpl">From</a>    = <a href="#header.from" class="smpl">mailbox</a>
     2201                  ought to be machine-usable, as defined by "addr-spec" in <a href="http://tools.ietf.org/html/rfc5322#section-3.4.1">Section 3.4.1</a> of <a href="#RFC5322" id="rfc.xref.RFC5322.1"><cite title="Internet Message Format">[RFC5322]</cite></a>:
     2202               </p>
     2203               <div id="rfc.figure.u.35"></div><pre class="inline"><span id="rfc.iref.g.30"></span>  <a href="#header.from" class="smpl">From</a>      = <a href="#header.from" class="smpl">addr-spec</a>
    22042204 
    2205   <a href="#header.from" class="smpl">mailbox</a> = &lt;mailbox, defined in <a href="#RFC5322" id="rfc.xref.RFC5322.2"><cite title="Internet Message Format">[RFC5322]</cite></a>, <a href="http://tools.ietf.org/html/rfc5322#section-3.4">Section 3.4</a>&gt;
     2205  <a href="#header.from" class="smpl">addr-spec</a> = &lt;addr-spec, defined in <a href="#RFC5322" id="rfc.xref.RFC5322.2"><cite title="Internet Message Format">[RFC5322]</cite></a>, <a href="http://tools.ietf.org/html/rfc5322#section-3.4.1">Section 3.4.1</a>&gt;
    22062206</pre><p id="rfc.section.5.5.1.p.3">An example is:</p>
    22072207               <div id="rfc.figure.u.36"></div><pre class="text">  From: webmaster@example.org
     
    46474647<a href="#header.expect" class="smpl">Expect</a> = "100-continue"
    46484648
    4649 <a href="#header.from" class="smpl">From</a> = mailbox
     4649<a href="#header.from" class="smpl">From</a> = addr-spec
    46504650
    46514651<a href="#preferred.date.format" class="smpl">GMT</a> = %x47.4D.54 ; GMT
     
    46764676<a href="#header.accept" class="smpl">accept-ext</a> = OWS ";" OWS token [ "=" word ]
    46774677<a href="#header.accept" class="smpl">accept-params</a> = weight *accept-ext
     4678<a href="#header.from" class="smpl">addr-spec</a> = &lt;addr-spec, defined in [RFC5322], Section 3.4.1&gt;
    46784679<a href="#obsolete.date.formats" class="smpl">asctime-date</a> = day-name SP date3 SP time-of-day SP year
    46794680<a href="#rule.parameter" class="smpl">attribute</a> = token
     
    47114712<a href="#language.tags" class="smpl">language-tag</a> = &lt;Language-Tag, defined in [RFC5646], Section 2.1&gt;
    47124713
    4713 <a href="#header.from" class="smpl">mailbox</a> = &lt;mailbox, defined in [RFC5322], Section 3.4&gt;
    47144714<a href="#header.accept" class="smpl">media-range</a> = ( "*/*" / ( type "/*" ) / ( type "/" subtype ) ) *( OWS
    47154715 ";" OWS parameter )
     
    47714771               </li>
    47724772               <li>&lt;<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/501">http://tools.ietf.org/wg/httpbis/trac/ticket/501</a>&gt;: "idempotency: clarify 'effect'"
     4773               </li>
     4774               <li>&lt;<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/504">http://tools.ietf.org/wg/httpbis/trac/ticket/504</a>&gt;: "does From: allow non addr-spec mailbox values?"
    47734775               </li>
    47744776            </ul>
     
    51195121                  <li><em>RFC5322</em>&nbsp;&nbsp;<a href="#rfc.xref.RFC5322.1">5.5.1</a>, <a href="#rfc.xref.RFC5322.2">5.5.1</a>, <a href="#rfc.xref.RFC5322.3">7.1.1.1</a>, <a href="#rfc.xref.RFC5322.4">7.1.1.1</a>, <a href="#rfc.xref.RFC5322.5">7.1.1.1</a>, <a href="#rfc.xref.RFC5322.6">7.1.1.2</a>, <a href="#RFC5322"><b>11.2</b></a>, <a href="#rfc.xref.RFC5322.7">A</a><ul>
    51205122                        <li><em>Section 3.3</em>&nbsp;&nbsp;<a href="#rfc.xref.RFC5322.4">7.1.1.1</a>, <a href="#rfc.xref.RFC5322.5">7.1.1.1</a></li>
    5121                         <li><em>Section 3.4</em>&nbsp;&nbsp;<a href="#rfc.xref.RFC5322.1">5.5.1</a>, <a href="#rfc.xref.RFC5322.2">5.5.1</a></li>
     5123                        <li><em>Section 3.4.1</em>&nbsp;&nbsp;<a href="#rfc.xref.RFC5322.1">5.5.1</a>, <a href="#rfc.xref.RFC5322.2">5.5.1</a></li>
    51225124                        <li><em>Section 3.6.1</em>&nbsp;&nbsp;<a href="#rfc.xref.RFC5322.6">7.1.1.2</a></li>
    51235125                     </ul>
  • draft-ietf-httpbis/latest/p2-semantics.xml

    r2436 r2443  
    24322432  <iref primary="true" item="From header field" x:for-anchor=""/>
    24332433  <x:anchor-alias value="From"/>
    2434   <x:anchor-alias value="mailbox"/>
     2434  <x:anchor-alias value="addr-spec"/>
    24352435<t>
    24362436   The "From" header field contains an Internet email address for a human
    24372437   user who controls the requesting user agent. The address ought to be
    2438    machine-usable, as defined by "mailbox"
    2439    in <xref x:sec="3.4" x:fmt="of" target="RFC5322"/>:
     2438   machine-usable, as defined by "addr-spec"
     2439   in <xref x:sec="3.4.1" x:fmt="of" target="RFC5322"/>:
    24402440</t>
    24412441<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="From"/>
    2442   <x:ref>From</x:ref>    = <x:ref>mailbox</x:ref>
     2442  <x:ref>From</x:ref>      = <x:ref>addr-spec</x:ref>
    24432443 
    2444   <x:ref>mailbox</x:ref> = &lt;mailbox, defined in <xref x:sec="3.4" x:fmt="," target="RFC5322"/>&gt;
     2444  <x:ref>addr-spec</x:ref> = &lt;addr-spec, defined in <xref x:sec="3.4.1" x:fmt="," target="RFC5322"/>&gt;
    24452445</artwork></figure>
    24462446<t>
     
    61996199<x:ref>Expect</x:ref> = "100-continue"
    62006200
    6201 <x:ref>From</x:ref> = mailbox
     6201<x:ref>From</x:ref> = addr-spec
    62026202
    62036203<x:ref>GMT</x:ref> = %x47.4D.54 ; GMT
     
    62286228<x:ref>accept-ext</x:ref> = OWS ";" OWS token [ "=" word ]
    62296229<x:ref>accept-params</x:ref> = weight *accept-ext
     6230<x:ref>addr-spec</x:ref> = &lt;addr-spec, defined in [RFC5322], Section 3.4.1&gt;
    62306231<x:ref>asctime-date</x:ref> = day-name SP date3 SP time-of-day SP year
    62316232<x:ref>attribute</x:ref> = token
     
    62636264<x:ref>language-tag</x:ref> = &lt;Language-Tag, defined in [RFC5646], Section 2.1&gt;
    62646265
    6265 <x:ref>mailbox</x:ref> = &lt;mailbox, defined in [RFC5322], Section 3.4&gt;
    62666266<x:ref>media-range</x:ref> = ( "*/*" / ( type "/*" ) / ( type "/" subtype ) ) *( OWS
    62676267 ";" OWS parameter )
     
    63336333      "idempotency: clarify 'effect'"
    63346334    </t>
     6335    <t>
     6336      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/504"/>:
     6337      "does From: allow non addr-spec mailbox values?"
     6338    </t>
    63356339  </list>
    63366340</t>
Note: See TracChangeset for help on using the changeset viewer.