Hello, OS: RHEL 4.0 Apache version: httpd-2.0.52-12.ent Tomcat version : 5.5.9 In our scenario, all the requests
are posted to apache web server and then apache forwards these requests to
tomcat server through mod_jk connector. The request body is of XML type. When
the request size is less than 8808, then request is processed correctly and if
it exceeds 8808 bytes, then the request is appended with old chuncks of the
request. Where I get parse exceptions since I am parsing the requests. For e.g : <example>
<example1 a=”b”/>
<example2 c=”d”/>
</example> This occurs as:
<example>
<example1 a=”b”/>ple1 a=”b”/>
<example2 c=”d”/>
</example> Note: I posted directly to tomcat server, where it is
accepting large size of requests and processing correctly. In the httpd.conf, I used the directives like LimitXMLRequestBody
with size values 1000000 and 2147483647. But the apache is
sending malicious data. I am reading the request in my servlet code as:
BufferedReader buffReader = req.getReader();
requestXml = new StringBuffer();
String s = null;
while ((s = buffReader.readLine()) != null) {
requestXml.append(s); }
buffReader.close();
fileContent = requestXml.toString().trim(); Could anyone tell me that, are there any other directives to be set to
solve this issue? Regards, Hemanth
|