Bug 43900 - proxy response contains unspecified characters
Summary: proxy response contains unspecified characters
Status: RESOLVED INVALID
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_proxy (show other bugs)
Version: 2.2.4
Hardware: Sun Solaris
: P2 blocker (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords: RFC
Depends on:
Blocks:
 
Reported: 2007-11-19 03:54 UTC by priya123
Modified: 2007-11-19 04:54 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description priya123 2007-11-19 03:54:13 UTC
Sometime on repeated requests there are extra character added to response, when 
data is fetched in blocks. I have mu Application server requesting data from 
third party using Apache proxy (ver 2.2.4). To check I switched on the dumpio 
modules and see that sometime the data-TRANSIENT data is written to the 
response buffer, in addition to data-Heap. This caused the response XML parser 
to fail. Though this happens occasionally. Here is part of dumpio output :

        <param 
name="store_number">0292</param>\n                                <param 
name="GeocodeDate">2007-10-30</param>\n                                <param 
name="GeocodeSource">cp073</param>\n                                <param 
name="client_id"></param>\n                                <param 
name="street"></param>\n                                <param 
name="town"></param>\n                
[Tue Nov 13 14:49:33 2007] [debug] mod_dumpio.c(139): mod_dumpio: dumpio_out
[Tue Nov 13 14:49:33 2007] [debug] mod_dumpio.c(55): mod_dumpio:  dumpio_out 
(data-TRANSIENT): 5 bytes
[Tue Nov 13 14:49:33 2007] [debug] mod_dumpio.c(71): mod_dumpio:  dumpio_out 
(data-TRANSIENT): 71c\r\n
[Tue Nov 13 14:49:33 2007] [debug] mod_dumpio.c(55): mod_dumpio:  dumpio_out 
(data-HEAP): 1820 bytes
[Tue Nov 13 14:49:33 2007] [debug] mod_dumpio.c(71): mod_dumpio:  dumpio_out 
(data-HEAP):    <param 
name="ph_open_sat"></param>\n                                <param 
name="ph_close_sat"></param>\n                                <param 
name="ph_open_sun"></param>\n         

and here is the part of resulted XML file returned by Apache to Application 
server:
                                <param name="ph_close_thu"></param>
                                <param name="ph_open_fri"></param>
                                <param name="ph_close_fri"></param>
           ^M
71c^M
                     <param name="ph_open_sat"></param>
                                <param name="ph_close_sat"></param>
                                <param name="ph_open_sun"></param>
.
.

I have tried to compile Apached 2.0.61 also, but getting the same problem there 
also. I am using  Sun zone Architecture m/c with Solaris 10.  With Application 
server running on Zone 1( Weblogic 9) and proxy Apache 2.2.2 running on Zone 2.
Comment 1 Nick Kew 2007-11-19 04:54:53 UTC
If you're claiming an RFC violation, please read the RFC first.  You just
described HTTP chunked encoding.

Once you've read it, you can EITHER fix your client application to support HTTP,
OR explain what prohibits Apache sending an HTTP chunked response in this
particular instance.