WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
15822
Error on empty or missing HTTP location header
https://bugs.webkit.org/show_bug.cgi?id=15822
Summary
Error on empty or missing HTTP location header
Jan Boeijink
Reported
2007-11-03 17:25:55 PDT
An empty Location header gives an error page, while FF does show the page. Try the URL. The page starts with this PHP code: <?php header("Location: "); ?>
Attachments
Add attachment
proposed patch, testcase, etc.
David Kilzer (:ddkilzer)
Comment 1
2007-11-03 18:03:20 PDT
Confirmed with a local debug build of WebKit
r27408
with Safari 3 Public Beta v. 3.0.3 (522.12.1) on Mac OS X 10.4.10 (8R218). Would be interesting to see how Leopard handles this.
David Kilzer (:ddkilzer)
Comment 2
2007-11-03 18:23:27 PDT
On Safari 3.0.4 (5523.10) on Mac OS X 10.5 (9A581), it appears that the test page attempts to redirect to itself indefinitely (although it's stopped by Safari).
Chris Roos
Comment 3
2008-03-22 01:04:27 PDT
I'm seeing this behaviour too. I noticed it because Google Groups responds to requests for Files[1] with a 302 code, a body with the link to follow but no Location header. Firefox renders the body OK but Safari (3.0.4 - 523.12.2) and Webkit (nightly build 31132) both fail to render the body (incidentally, Internet Explorer 6 fails to render the body too). The HTTP spec[2] states that the Location header SHOULD (not MUST) be sent so it feels to me as though this is a bug in Webkit. [1]
http://delicious-trackbacks.googlegroups.com/web/installation.html
[2]
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.2
David Kilzer (:ddkilzer)
Comment 4
2008-03-22 16:47:16 PDT
<
rdar://problem/5814804
>
Peter Zion
Comment 5
2008-04-22 20:27:58 PDT
I think I may have found a similar (possibly related) bug: headers of the form "Location: ?foo" don't work correctly; the generate an error. This form works correctly with IE and Firefox.
David Kilzer (:ddkilzer)
Comment 6
2008-04-23 08:17:44 PDT
(In reply to
comment #5
)
> I think I may have found a similar (possibly related) bug: headers of the form > "Location: ?foo" don't work correctly; the generate an error. This form works > correctly with IE and Firefox.
This is a slightly different issue. Could you please file a new bug and copy me on it? Thanks!
Alexey Proskuryakov
Comment 7
2008-10-21 00:33:38 PDT
This is an issue in closed source Apple frameworks below WebKit, closing as INVALID per our process. This will continue to be tracked by Apple internally as <
rdar://problem/5509975
>, thank you for filing this bug! To get its status, please e-mail
devbugs@apple.com
and ask about <
rdar://problem/5509975
>. Note that the aforementioned bug only tracks the issue with an empty Location header. The issue with missing Location header is tracked as <
rdar://problem/6089805
>. I'm not sure if the issue with "Location: ?foo" is tracked already, I encourage you to file a bug at <
http://bugreport.apple.com
>.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug