<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>6871</bug_id>
          
          <creation_ts>2006-01-27 03:58:34 -0800</creation_ts>
          <short_desc>401 error page is never shown</short_desc>
          <delta_ts>2010-10-19 10:05:08 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Page Loading</component>
          <version>417.x</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.science.uva.nl/research/air/network/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>13075</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Freek Dijkstra">public</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>ian</cc>
    
    <cc>rc</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>30294</commentid>
    <comment_count>0</comment_count>
    <who name="Freek Dijkstra">public</who>
    <bug_when>2006-01-27 03:58:34 -0800</bug_when>
    <thetext>If a browser receives a client error (4xx) message upon sending a HTTP request, the server typically includes a diagnostic message. The &quot;404&quot; pages are well known to most people.

According to the specification (RFC2068, section 10.4), &quot;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.&quot;

For 404 and 403 messages, Safari does display the diagnostic webpage. However, for 401 (Unauthorized), it does not, but shows the preceeding page. Safari &apos;SHOULD&apos; 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 &quot;curl http://www.science.uva.nl/research/air/network/&quot;

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&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30295</commentid>
    <comment_count>1</comment_count>
    <who name="Joost de Valk (AlthA)">joost</who>
    <bug_when>2006-01-27 04:02:03 -0800</bug_when>
    <thetext>Confirmed, an annoying little bug this one :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>249392</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-07-09 17:45:08 -0700</bug_when>
    <thetext>My patch for bug 13075 fixes this, too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>249892</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-07-12 10:01:51 -0700</bug_when>
    <thetext>Fixed on Mac in &lt;http://trac.webkit.org/changeset/63095&gt;. A Windows Safari fix is in closed source code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>296248</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-10-19 10:05:08 -0700</bug_when>
    <thetext>*** Bug 47886 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>