<?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>14195</bug_id>
          
          <creation_ts>2007-06-16 22:14:26 -0700</creation_ts>
          <short_desc>when posting a form with an &lt;input type=&apos;file&apos;&gt; to 127.0.0.1, the browser simply hangs...</short_desc>
          <delta_ts>2007-09-08 12:57:57 -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>New Bugs</component>
          <version>523.x (Safari 3)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>5760</dup_id>
          
          <bug_file_loc>http://localhost</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="michael geary">michael</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bernu</cc>
    
    <cc>ddkilzer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>7295</commentid>
    <comment_count>0</comment_count>
    <who name="michael geary">michael</who>
    <bug_when>2007-06-16 22:14:26 -0700</bug_when>
    <thetext>the server doesn&apos;t even get hit, as far as i&apos;ve observed. This doesn&apos;t happen every time, but it happens with at least even odds. I&apos;ve observed it in the shipping version of Safari 2, the nightly build of WebKit, and the beta of Safari 3. It&apos;s quite easy to reproduce, and it&apos;s easy to observe, since a submission that should take seconds just hangs and hangs. I&apos;m running Apache 2.x on OS X 10.4.9</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7284</commentid>
    <comment_count>1</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-06-17 07:52:41 -0700</bug_when>
    <thetext>Thanks for the bug report, Michael!  Does it matter whether you loaded the page with the form using 127.0.0.1 versus localhost?  Are you connected to the Internet (or a LAN) when this happens?

Are you actually selecting a file to be submitted, or are you leaving the file input blank?  If selecting a file, what type of file is it?

What exact version of Apache are you using (since Apache 2.x didn&apos;t come with OS X 10.4.9)?  Did you compile it from source, or are you use a precompiled distribution?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7276</commentid>
    <comment_count>2</comment_count>
    <who name="michael geary">michael</who>
    <bug_when>2007-06-17 11:00:28 -0700</bug_when>
    <thetext>i always connect to 127.0.0.1, rather than localhost, but i&apos;ll try localhost going forward to see if this persists. I am generally connected to a Lan (wifi) when this happens. 

The issue only happens when i have selected a file. If i just submit data, i never see the problem. The type of file doesn&apos;t seem to matter. It&apos;s happened most recently with PDF and CSV files. 

Now that i&apos;ve submitted this bug, of course, the issue doesn&apos;t seem to be as reliably reproduced, but it is still there, i&apos;m sure of it.

I compiled Apache myself. Tthe httpd -V output is below. However, it should be noted that when this problem occurs, the server never gets the request. Even putting a PHP &quot;die()&quot; at the top of the file receiving the upload produces no results when the bug happens.

Server version: Apache/2.2.3
Server built:   Oct 30 2006 23:55:59
Server&apos;s Module Magic Number: 20051115:3
Server loaded:  APR 1.2.7, APR-Util 1.2.7
Compiled using: APR 1.2.7, APR-Util 1.2.7
Architecture:   32-bit
Server MPM:     Prefork
  threaded:     no
    forked:     yes (variable process count)
Server compiled with....
 -D APACHE_MPM_DIR=&quot;server/mpm/prefork&quot;
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=128
 -D HTTPD_ROOT=&quot;/usr/local/apache2&quot;
 -D SUEXEC_BIN=&quot;/usr/local/apache2/bin/suexec&quot;
 -D DEFAULT_PIDLOG=&quot;logs/httpd.pid&quot;
 -D DEFAULT_SCOREBOARD=&quot;logs/apache_runtime_status&quot;
 -D DEFAULT_LOCKFILE=&quot;logs/accept.lock&quot;
 -D DEFAULT_ERRORLOG=&quot;logs/error_log&quot;
 -D AP_TYPES_CONFIG_FILE=&quot;conf/mime.types&quot;
 -D SERVER_CONFIG_FILE=&quot;conf/httpd.conf&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4327</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2007-07-19 05:40:54 -0700</bug_when>
    <thetext>Could you please attach samples of WebKit and Apache when this happens? You can take a sample with Applications/Utilities/Activity Monitor.app.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>797</commentid>
    <comment_count>4</comment_count>
    <who name="Bernard Bernu">bernu</who>
    <bug_when>2007-09-08 03:03:28 -0700</bug_when>
    <thetext>I just checking for the first time this site looking for upload bugs.
I remarked that particular bug since Safari 2 and still see it in Safari 3 and WebKit (at least until r25410).
Because it I could never reproduced it I spent hours to try find where my javascript could be wrong (We are developing a Web site and I mainly develop on localhost). 
I&apos;m under MacOSX.4.10. I&apos;m effectively almost all time connected thru AirPort.
I do not remember I that bug appears when uploading to not localhost.
I got the impression (sorry, not very scientific) the the problem arises every around 20 uploads.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>788</commentid>
    <comment_count>5</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-09-08 09:25:30 -0700</bug_when>
    <thetext>The next time this happens, please run the following commands:

% sample Safari 10 10
% sample httpd 10 10

Note that you may also use Activty Monitor to take samples.

Also note that since Apache is multi-threaded, you may need to run something like &quot;ps auwwx | grep httpd&quot; to find the correct process ID (PID) to use with sample:

% sample PID 10 10

After doing this, please attach the sample output files created in /tmp/ to this bug.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>790</commentid>
    <comment_count>6</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-09-08 09:35:47 -0700</bug_when>
    <thetext>BTW, this sounds like it may be a duplicate of Bug 5760.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>773</commentid>
    <comment_count>7</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-09-08 09:48:59 -0700</bug_when>
    <thetext>After re-reading Bug 5760 Comment #38, this is almost certainly a duplicate of that bug.

There is no need to run sample(1) per Comment #5.



*** This bug has been marked as a duplicate of 5760 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>777</commentid>
    <comment_count>8</comment_count>
    <who name="Bernard Bernu">bernu</who>
    <bug_when>2007-09-08 12:52:29 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; After re-reading Bug 5760 Comment #38, this is almost certainly a duplicate of
&gt; that bug.
&gt; 
&gt; There is no need to run sample(1) per Comment #5.
&gt; 
&gt; 
&gt; 
&gt; *** This bug has been marked as a duplicate of 5760 ***
&gt; 
I agree, it sounds very much the same bug.
From #41 of bug 6760, do I understand correctly that there is actually no work around to this bug ?

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>778</commentid>
    <comment_count>9</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-09-08 12:57:57 -0700</bug_when>
    <thetext>(In reply to comment #8)
&gt; I agree, it sounds very much the same bug.
&gt; From #41 of bug 6760, do I understand correctly that there is actually no work
&gt; around to this bug ?

The only work-around that I can think of is to move the server off the local machine so that you&apos;re going over the network instead of hitting it locally.  I&apos;m not positive, but I think the bug occurs when you&apos;re using localhost, 127.0.0.1, an IP address bound to an ethernet port or wireless connection, or the hostname associated with that bound IP address.

It&apos;s rather unfortunate that this hasn&apos;t really been fixed yet.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>