Bug 6871 - 401 error page is never shown
Summary: 401 error page is never shown
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: 417.x
Hardware: Mac All
: P2 Normal
Assignee: Nobody
URL: http://www.science.uva.nl/research/ai...
Keywords: InRadar
Depends on: 13075
Blocks:
  Show dependency treegraph
 
Reported: 2006-01-27 03:58 PST by Freek Dijkstra
Modified: 2010-10-19 10:05 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Freek Dijkstra 2006-01-27 03:58:34 PST
If a browser receives a client error (4xx) message upon sending a HTTP request, the server typically includes a diagnostic message. The "404" pages are well known to most people.

According to the specification (RFC2068, section 10.4), "the server SHOULD include an entity containing an explanation of the error situation, and whether it is a temporary or permanent condition. These status codes are applicable to any request method. User agents SHOULD display any included entity to the user."

For 404 and 403 messages, Safari does display the diagnostic webpage. However, for 401 (Unauthorized), it does not, but shows the preceeding page. Safari 'SHOULD' do show the diagnostic page instead. now, the user misses important information.

Example to reproduce:
1. Open Safari
2. Go to http://www.science.uva.nl/research/air/network/
3. Press cancel

Expected results:
I would exepct to see the diagnostic page, which you can get with "curl http://www.science.uva.nl/research/air/network/"

Actual results:
I see the previously visited page (or a blank page if I did not visit a page before).

Work around:
There is no work-around, other then using an other browser.

Isolation:
This behaviour does occur with 401 pages, not with 403 or 404 pages. I haven't tried with other result codes.
This bug has been reported as rdar:3631782 with Apple, in june 2004. I hope it does get some more attention here.
Comment 1 Joost de Valk (AlthA) 2006-01-27 04:02:03 PST
Confirmed, an annoying little bug this one :)
Comment 2 Alexey Proskuryakov 2010-07-09 17:45:08 PDT
My patch for bug 13075 fixes this, too.
Comment 3 Alexey Proskuryakov 2010-07-12 10:01:51 PDT
Fixed on Mac in <http://trac.webkit.org/changeset/63095>. A Windows Safari fix is in closed source code.
Comment 4 Alexey Proskuryakov 2010-10-19 10:05:08 PDT
*** Bug 47886 has been marked as a duplicate of this bug. ***