Ticket #295: 295.diff
File 295.diff, 4.7 KB (added by julian.reschke@…, 11 years ago) |
---|
-
p2-semantics.xml
2589 2589 resource, or to redirect the recipient to a different location for 2590 2590 completion of the request. 2591 2591 </t> 2592 <figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Location"/> 2593 <x:ref>Location</x:ref> = <x:ref>URI-reference</x:ref> 2594 </artwork></figure> 2592 2595 <t> 2593 2596 For 201 (Created) responses, the Location is the URI of the new resource 2594 2597 which was created by the request. For 3xx responses, the location &SHOULD; … … 2599 2602 The field value consists of a single URI-reference. When it has the form 2600 2603 of a relative reference (<xref target="RFC3986" x:fmt="," x:sec="4.2"/>), 2601 2604 the final value is computed by resolving it against the effective request 2602 URI (<xref target="RFC3986" x:fmt="," x:sec="5"/>). 2605 URI (<xref target="RFC3986" x:fmt="," x:sec="5"/>). If the original URI, as 2606 navigated to by the user agent, did contain a fragment identifier, and the 2607 final value does not, then the original URI's fragment identifier is added 2608 to the final value. 2603 2609 </t> 2604 <figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Location"/>2605 <x:ref>Location</x:ref> = <x:ref>URI-reference</x:ref>2606 </artwork></figure>2607 2610 <figure> 2608 <preamble> Examples are:</preamble><!--DO NOT DARE changing the vertical spacing below, it's necessary this way for xml2rfc-->2611 <preamble>For example, the original URI "http://www.example.org/~tim", combined with a field value given as:</preamble><!--DO NOT DARE changing the vertical spacing below, it's necessary this way for xml2rfc--> 2609 2612 <artwork type="example"> 2610 Location: http://www.example.org/pub/WWW/People.html#tim 2611 </artwork></figure><figure><artwork type="example"> Location: /index.html 2612 </artwork></figure> 2613 Location: /pub/WWW/People.html#tim 2614 </artwork> 2615 <postamble>would result in a final value of "http://www.example.org/pub/WWW/People.html#tim"</postamble> 2616 </figure> 2617 <figure> 2618 <preamble>An original URI "http://www.example.org/index.html#larry", combined with a field value given as:</preamble><!--DO NOT DARE changing the vertical spacing below, it's necessary this way for xml2rfc--> 2619 <artwork type="example"> 2620 Location: http://www.example.net/index.html 2621 </artwork> 2622 <postamble>would result in a final value of "http://www.example.net/index.html#larry", preserving the original fragment identifier.</postamble> 2623 </figure> 2613 2624 <x:note> 2614 2625 <t> 2615 2626 <x:h>Note:</x:h> Some recipients attempt to recover from Location fields … … 2625 2636 </t> 2626 2637 <x:note> 2627 2638 <t> 2628 <x:h>Note:</x:h> This specification does not define precedence rules2629 for the case where the original URI, as navigated to by the user2630 agent, and the Location header field value both contain fragment2631 identifiers. Thus be aware that including fragment identifiers might2632 inconvenience anyone relying on the semantics of the original URI's2633 fragment identifier.2634 </t>2635 </x:note>2636 <x:note>2637 <t>2638 2639 <x:h>Note:</x:h> The Content-Location header field (&header-content-location;) differs 2639 2640 from Location in that the Content-Location identifies the most specific 2640 2641 resource corresponding to the enclosed representation. … … 3283 3284 </t> 3284 3285 </section> 3285 3286 3286 <section title="Location Header s and Spoofing" anchor="location.spoofing">3287 <section title="Location Header Fields and Spoofing" anchor="location.spoofing"> 3287 3288 <t> 3288 3289 If a single server supports multiple organizations that do not trust 3289 3290 one another, then it &MUST; check the values of Location and Content-Location … … 3291 3292 said organizations to make sure that they do not attempt to 3292 3293 invalidate resources over which they have no authority. 3293 3294 </t> 3295 <t> 3296 Furthermore, appending the fragment identifier from one URI to another 3297 one obtained from a Location header field might leak confidential 3298 information to the target server — although the fragment identifier is 3299 not transmitted in the final request, it might be visible to the user agent 3300 through other means, such as scripting). 3301 </t> 3294 3302 </section> 3295 3303 3296 3304 <section title="Security Considerations for CONNECT"> … … 4657 4665 "Requirements for user intervention during redirects" 4658 4666 </t> 4659 4667 <t> 4668 <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/295"/>: 4669 "Applying original fragment to 'plain' redirected URI" 4670 </t> 4671 <t> 4660 4672 <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/302"/>: 4661 4673 "Misplaced text on connection handling in p2" 4662 4674 </t>