<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - URI fragment of location header not appended in case of further redirect"
href="https://bugs.webkit.org/show_bug.cgi?id=158420">158420</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>URI fragment of location header not appended in case of further redirect
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>Product</th>
<td>WebKit
</td>
</tr>
<tr>
<th>Version</th>
<td>Safari 9
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>OS X 10.11
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>Normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P2
</td>
</tr>
<tr>
<th>Component</th>
<td>Page Loading
</td>
</tr>
<tr>
<th>Assignee</th>
<td>webkit-unassigned@lists.webkit.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>tgerlach@communicode.de
</td>
</tr>
<tr>
<th>CC</th>
<td>beidson@apple.com
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=280593" name="attach_280593" title="simple php test scenario">attachment 280593</a> <a href="attachment.cgi?id=280593&action=edit" title="simple php test scenario">[details]</a></span>
simple php test scenario
As a variant of the <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - URL Redirect Loses Fragment"
href="show_bug.cgi?id=24175">BUG 24175</a> the following scenario still fails in Safari 9 (iPhone 9, Mac 10)
1. request a URI
2. response is 302 with a URI with fragment as location header
3. the location header's URI is redirected again with 302
4. the last URI has no fragment anymore.
example:
1. request: <a href="http://localhost/fragmenttest">http://localhost/fragmenttest</a>
2. response: 302, location header /fragmenttest/old/#somewhere
3. response: 302, location header /fragmenttest/new/
4. FAIL: agent requests just <a href="http://localhost/fragmenttest/new/">http://localhost/fragmenttest/new/</a> instead of <a href="http://localhost/fragmenttest/new/#somewhere">http://localhost/fragmenttest/new/#somewhere</a>
important:
This behaviour is only reproducable with the two redirects.
If you enter the 2. URI directly in the address line of the browser, the fragment will be kept!
2' request: <a href="http://localhost/fragmenttest/old/#somewhere">http://localhost/fragmenttest/old/#somewhere</a>
3. response: 302, location header /fragmenttest/new/
4. SUCCESS: agent requests <a href="http://localhost/fragmenttest/new/#somewhere">http://localhost/fragmenttest/new/#somewhere</a>
test:
insert the attached folder "fragmenttest" into a webserver with php and call the above mentioned URIs.
(index.php and index.html need to be the configured as default files for folders)</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>