httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 45911] mod_proxy_ajp file upload failure
Date Tue, 30 Sep 2008 19:30:58 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=45911


Ruediger Pluem <rpluem@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |NEEDINFO




--- Comment #7 from Ruediger Pluem <rpluem@apache.org>  2008-09-30 12:30:57 PST ---
I am sorry, but the access log indicates that everything went alright on httpd
side:

[Tue Sep 30 10:04:39 2008] [debug] mod_proxy_ajp.c(45): proxy: AJP:
canonicalising URL //localhost:8009/johnk/ExtraView/4483
[Tue Sep 30 10:04:39 2008] [debug] proxy_util.c(1488): [client 127.0.0.1]
proxy: ajp: found worker ajp://localhost:8009/ for
ajp://localhost:8009/johnk/ExtraView/4483?p_option=admin.MetaUpdaterDisplay&class=%25STWV0YWRhdGEgWE1MIEltcG9ydA%3D%3D&p_action=doXMLRead,
referer:
http://johnk.extraview.net/johnk/ExtraView/4483?p_option=admin.MetaUpdaterDisplay&p_action=doDisplay&class=%25STWV0YWRhdGEgWE1MIEltcG9ydA%3D%3D
[Tue Sep 30 10:04:39 2008] [debug] mod_proxy.c(966): Running scheme ajp handler
(attempt 0)
[Tue Sep 30 10:04:39 2008] [debug] mod_proxy_http.c(1899): proxy: HTTP:
declining URL
ajp://localhost:8009/johnk/ExtraView/4483?p_option=admin.MetaUpdaterDisplay&class=%25STWV0YWRhdGEgWE1MIEltcG9ydA%3D%3D&p_action=doXMLRead
[Tue Sep 30 10:04:39 2008] [debug] mod_proxy_ajp.c(579): proxy: AJP: serving
URL
ajp://localhost:8009/johnk/ExtraView/4483?p_option=admin.MetaUpdaterDisplay&class=%25STWV0YWRhdGEgWE1MIEltcG9ydA%3D%3D&p_action=doXMLRead
[Tue Sep 30 10:04:39 2008] [debug] proxy_util.c(2044): proxy: AJP: has acquired
connection for (localhost)
[Tue Sep 30 10:04:39 2008] [debug] proxy_util.c(2102): proxy: connecting
ajp://localhost:8009/johnk/ExtraView/4483?p_option=admin.MetaUpdaterDisplay&class=%25STWV0YWRhdGEgWE1MIEltcG9ydA%3D%3D&p_action=doXMLRead
to localhost:8009
[Tue Sep 30 10:04:39 2008] [debug] proxy_util.c(2195): proxy: connected
/johnk/ExtraView/4483?p_option=admin.MetaUpdaterDisplay&class=%25STWV0YWRhdGEgWE1MIEltcG9ydA%3D%3D&p_action=doXMLRead
to localhost:8009
[Tue Sep 30 10:04:39 2008] [debug] ajp_header.c(224): Into
ajp_marshal_into_msgb
[Tue Sep 30 10:04:39 2008] [debug] ajp_header.c(290): ajp_marshal_into_msgb:
Header[0] [Host] = [johnk.extraview.net]
[Tue Sep 30 10:04:39 2008] [debug] ajp_header.c(290): ajp_marshal_into_msgb:
Header[1] [User-Agent] = [Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3]
[Tue Sep 30 10:04:39 2008] [debug] ajp_header.c(290): ajp_marshal_into_msgb:
Header[2] [Accept] =
[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8]
[Tue Sep 30 10:04:39 2008] [debug] ajp_header.c(290): ajp_marshal_into_msgb:
Header[3] [Accept-Language] = [en-us,en;q=0.5]
[Tue Sep 30 10:04:39 2008] [debug] ajp_header.c(290): ajp_marshal_into_msgb:
Header[4] [Accept-Encoding] = [gzip,deflate]
[Tue Sep 30 10:04:39 2008] [debug] ajp_header.c(290): ajp_marshal_into_msgb:
Header[5] [Accept-Charset] = [ISO-8859-1,utf-8;q=0.7,*;q=0.7]
[Tue Sep 30 10:04:39 2008] [debug] ajp_header.c(290): ajp_marshal_into_msgb:
Header[6] [Keep-Alive] = [300]
[Tue Sep 30 10:04:39 2008] [debug] ajp_header.c(290): ajp_marshal_into_msgb:
Header[7] [Connection] = [keep-alive]
[Tue Sep 30 10:04:39 2008] [debug] ajp_header.c(290): ajp_marshal_into_msgb:
Header[8] [Referer] =
[http://johnk.extraview.net/johnk/ExtraView/4483?p_option=admin.MetaUpdaterDisplay&p_action=doDisplay&class=%25STWV0YWRhdGEgWE1MIEltcG9ydA%3D%3D]
[Tue Sep 30 10:04:39 2008] [debug] ajp_header.c(290): ajp_marshal_into_msgb:
Header[9] [Cookie] = [EV_Test=ExtraView; EV_user=JK; EV_pass=XXlnurNr4fVlk;
EV_session=4483; JSESSIONID=46A5FCC62A520FA4C757C5803930187F;
Bugzilla_logincookie=tnuWQZSUX9; Bugzilla_login=1;
ZP_CAL=%27fdow%27%3Anull%2C%27history%27%3A%222008/09/01/14/30%22%2C%27hsize%27%3A9]
[Tue Sep 30 10:04:39 2008] [debug] ajp_header.c(290): ajp_marshal_into_msgb:
Header[10] [Content-Type] = [multipart/form-data;
boundary=---------------------------186512674022044]

The POST request has a body with a length of 25536 bytes.

[Tue Sep 30 10:04:39 2008] [debug] ajp_header.c(290): ajp_marshal_into_msgb:
Header[11] [Content-Length] = [25536]
[Tue Sep 30 10:04:39 2008] [debug] ajp_header.c(430): ajp_marshal_into_msgb:
Done
[Tue Sep 30 10:04:39 2008] [debug] mod_proxy_ajp.c(244): proxy: data to read
(max 8186 at 4)

Here we send the first 6283 bytes

[Tue Sep 30 10:04:39 2008] [debug] mod_proxy_ajp.c(259): proxy: got 6283 bytes
of data

Now Tomcat sends us the response headers

[Tue Sep 30 10:04:39 2008] [debug] ajp_header.c(652): ajp_read_header:
ajp_ilink_received 04
[Tue Sep 30 10:04:39 2008] [debug] ajp_header.c(662): ajp_parse_type: got 04
[Tue Sep 30 10:04:39 2008] [debug] ajp_header.c(491): ajp_unmarshal_response:
status = 200
[Tue Sep 30 10:04:39 2008] [debug] ajp_header.c(502): ajp_unmarshal_response:
Number of headers is = 4
[Tue Sep 30 10:04:39 2008] [debug] ajp_header.c(564): ajp_unmarshal_response:
Header[0] [Cache-Control] = [no-cache]
[Tue Sep 30 10:04:39 2008] [debug] ajp_header.c(564): ajp_unmarshal_response:
Header[1] [Pragma] = [no-cache]
[Tue Sep 30 10:04:39 2008] [debug] ajp_header.c(564): ajp_unmarshal_response:
Header[2] [Expires] = [Sun, 06 Nov 1994 08:49:37 GMT]
[Tue Sep 30 10:04:39 2008] [debug] ajp_header.c(564): ajp_unmarshal_response:
Header[3] [Content-Type] = [text/html;charset=UTF-8]
[Tue Sep 30 10:04:39 2008] [debug] ajp_header.c(574): ajp_unmarshal_response:
ap_set_content_type done

Now Tomcat sends us parts of the response body.

[Tue Sep 30 10:04:39 2008] [debug] ajp_header.c(652): ajp_read_header:
ajp_ilink_received 03
[Tue Sep 30 10:04:39 2008] [debug] ajp_header.c(662): ajp_parse_type: got 03

Now Tomcat requests more request body from us.

[Tue Sep 30 10:04:39 2008] [debug] ajp_header.c(652): ajp_read_header:
ajp_ilink_received 06
[Tue Sep 30 10:04:39 2008] [debug] ajp_header.c(662): ajp_parse_type: got 06

Now Tomcat requests more request body from us.

[Tue Sep 30 10:04:39 2008] [debug] ajp_header.c(652): ajp_read_header:
ajp_ilink_received 06
[Tue Sep 30 10:04:39 2008] [debug] ajp_header.c(662): ajp_parse_type: got 06

Now Tomcat requests more request body from us.

[Tue Sep 30 10:04:39 2008] [debug] ajp_header.c(652): ajp_read_header:
ajp_ilink_received 06
[Tue Sep 30 10:04:39 2008] [debug] ajp_header.c(662): ajp_parse_type: got 06

Now Tomcat requests more request body from us.

[Tue Sep 30 10:04:39 2008] [debug] ajp_header.c(652): ajp_read_header:
ajp_ilink_received 06
[Tue Sep 30 10:04:39 2008] [debug] ajp_header.c(662): ajp_parse_type: got 06

Now Tomcat sends us the remaining response body.

[Tue Sep 30 10:04:39 2008] [debug] ajp_header.c(652): ajp_read_header:
ajp_ilink_received 03
[Tue Sep 30 10:04:39 2008] [debug] ajp_header.c(662): ajp_parse_type: got 03

Now Tomcat shuts down the request.

[Tue Sep 30 10:04:39 2008] [debug] ajp_header.c(652): ajp_read_header:
ajp_ilink_received 05
[Tue Sep 30 10:04:39 2008] [debug] ajp_header.c(662): ajp_parse_type: got 05
[Tue Sep 30 10:04:39 2008] [debug] mod_proxy_ajp.c(498): proxy: got response
from 127.0.0.1:8009 (localhost)
[Tue Sep 30 10:04:39 2008] [debug] proxy_util.c(2062): proxy: AJP: has released
connection for (localhost)

As you can see Tomcat requests request body data 4 times. Provided the data is
available (aka was delivered by the client) this data 25536 - 6283 = 19253
bytes fits perfectly in 4 8K pakets that httpd sends as a response to these
requests.
So all your data should have arrived at the Tomcat side.

Can you please setup a network sniffer to sniff on port 8009 on the loopback
interface to finally prove that the data was transmitted to Tomcat?


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message