<?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>21957</bug_id>
          
          <creation_ts>2008-10-29 14:27:51 -0700</creation_ts>
          <short_desc>WebKit doesn&apos;t know how to recover from kCFErrorDomainCFNetwork: 302 very well</short_desc>
          <delta_ts>2008-10-29 18:01:35 -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>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Matt Bishop">matt</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>97039</commentid>
    <comment_count>0</comment_count>
    <who name="Matt Bishop">matt</who>
    <bug_when>2008-10-29 14:27:51 -0700</bug_when>
    <thetext>If I visit a site that breaks the connection such that it generates a error &quot;kCFErrorDomainCFNetwork: 302&quot;, it takes a while, sometimes never, for that site to start rendering again. A while could be days. The site itself could be working fine, as I can open the same site in Firefox and curl just fine.

The only workaround I have found is to:

1. Empty Cache
2. Delete the site.webhistory file from ~/Library/Caches/Metadata/Safari/History
3. Remove the site&apos;s Cookies in Preferences
4. Restart Safari

It may be that the last step (removing the cookies) is the deciding factor of the workaround.

I have seen this in Safari 3.1.2, GWT Hosted Mode (uses WebKit + SWT) and the latest nightly build as of this bug filing.

Searching the web finds many, many people encountering persistent kCFErrorDomainCFNetwork errors like this, so it appears to be a widespread problem.

I can generate it pretty easily if I debug GWT in Hosted mode, hit a breakpoint, then open the page I am debugging in a safari browser instance.

Interestingly, if I stand up Tomcat and replicate the path that GWT uses (http://localhost:8888/my.module.name/index.html) with a plain HTML file, Safari still shows the 302 error.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97058</commentid>
    <comment_count>1</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2008-10-29 15:39:57 -0700</bug_when>
    <thetext>For what it&apos;s worth, error 302 in kCFErrorDomainCFNetwork is kCFErrorHTTPConnectionLost.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97071</commentid>
    <comment_count>2</comment_count>
    <who name="Matt Bishop">matt</who>
    <bug_when>2008-10-29 16:23:57 -0700</bug_when>
    <thetext>I have narrowed the workaround down to just deleting the cookies for the website (in my case localhost/...) and restarting all instances of WebKit.  I know, doesn&apos;t make sense, but it&apos;s what I am finding.

I&apos;m not sure what it is about the cookies I am saving. I will keep trying to narrow this down.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97083</commentid>
    <comment_count>3</comment_count>
    <who name="Matt Bishop">matt</who>
    <bug_when>2008-10-29 18:01:35 -0700</bug_when>
    <thetext>The bug is in Tomcat, not WebKit. This WebKit issue can be closed.

FYI, I filed a bug with Tomcat: https://issues.apache.org/bugzilla/show_bug.cgi?id=46125</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>