Bug 18682 - Page not asking for authentication due to malformed WWW-Authenticate header
Summary: Page not asking for authentication due to malformed WWW-Authenticate header
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: 525.x (Safari 3.1)
Hardware: Mac OS X 10.5
: P2 Minor
Assignee: Nobody
URL: http://docs.idtv.nl
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2008-04-22 14:08 PDT by Rob Das
Modified: 2008-04-22 15:36 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rob Das 2008-04-22 14:08:23 PDT
Not showing authentication, Firefox works for the page...
Comment 1 Mark Rowe (bdash) 2008-04-22 14:41:41 PDT
The headers the server returns are as follows:

HTTP/1.1 401 Authorization Required
Date: Tue, 22 Apr 2008 21:39:47 GMT
Server: Apache/1.3.33 (Debian GNU/Linux) mod_perl/1.29 PHP/4.3.10-22
X-Powered-By: PHP/4.3.10-22
Set-Cookie: PHPSESSID=98f6cd1bf4b7ead42eeac5db5073533f; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
WWW-Authenticate: Basic realm=188044978 SECOND level: Enter your password.
Transfer-Encoding: chunked
Content-Type: text/html

Of particular relevance is the WWW-Authenticate header, the value of which does not appear to follow the format outlined in the HTTP authentication specification (RFC 2617).  In particular, the value of the "realm" key is expected to be a quoted string.
Comment 2 Mark Rowe (bdash) 2008-04-22 15:35:24 PDT
Parsing of WWW-Authenticate headers is handled by the network library that WebKit uses, which is CFNetwork on the Mac.  The server really should not be sending malformed WWW-Authenticate headers in the first place, but it would be nice if CFNetwork would handle them more gracefully.
Comment 3 Mark Rowe (bdash) 2008-04-22 15:35:59 PDT
<rdar://problem/5881924>
Comment 4 Mark Rowe (bdash) 2008-04-22 15:36:51 PDT
Closing as INVALID to indicate that the problem is outside of WebKit.