tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 43753] - JkEnvVar and Limit of content length HTTP request POST
Date Wed, 02 Jan 2008 17:12:41 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43753>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43753





------- Additional Comments From wp@artkode.com  2008-01-02 09:12 -------
No sorry, I have a permanently error without JKEnvVar : the version 1.2.26 is useless for
me.

The HTTP error :
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="13
en" lang="e
en"><head><title>38 Object not found!</title>
<link rev="made" href="mailto:%0D%0A106%0D%0A**@******.com">
<style type="text/css"><!--/*--><![CDATA[/*><!--*/ 
    body { color: #000000; background-color: #FFFFFF; }
    a:link { color: #0000CC; }
    p, address {margin-left: 3em;}
    span {font-size: smaller;}
/*]]>*/--></style></head><body>
<h1>
1b
Object not found!</h1>
<p>

39
    The requested URL was not found on this server.
23
    The link on the
    <a href="97%0D%0Ahttp://www.***********.com/paiement/commande.html">referring
    page</a> seems to be wrong or outdated. Please inform the author of
    <a href="5e%0D%0Ahttp://www.***********.com/paiement/commande.html">that page</a>
    about the error.
2
9
</p>
<p>
48
If you think this is a server error, please contact
the <a href="mailto:%0D%0A1e%0D%0A***@********.com">webmaster</a>.
11
</p>
<h2>Error 
21
404</h2>
<address>
  <a href="/">
25
www.***********.com</a><br>
9
  <span>
21
Wed Jan  2 16:39:11 2008<br>
71
Apache/2.2.4 (Unix) mod_ssl/2.2.4 OpenSSL/0.9.7l DAV/2 PHP/5.2.1 mod_jk/1.2.26</span>
</address>
1
0
</body></html>

for the mod_jk.log, no bug found :
[Wed Jan 02 16:18:18 2008] [20325:2684415368] [info] init_jk::mod_jk.c (2825): mod_jk/1.2.26

initialized

for Tomcat catalina.out :
2 janv. 2008 16:58:01 org.apache.jk.common.ChannelSocket processConnection
GRAVE: Error, processing connection
java.lang.IndexOutOfBoundsException
	at java.io.BufferedInputStream.read(BufferedInputStream.java:306)
	at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:620)
	at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:577)
	at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:685)
	at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:686)
	at java.lang.Thread.run(Thread.java:613)
2 janv. 2008 16:58:02 org.apache.jk.common.MsgAjp processHeader
GRAVE: BAD packet signature 18245

the call of this page is a script PHP (it work with mod_jk 1.2.25 without JKEnvVar):
function locationPost($host,$uri,$data){
	$header  = 'POST http://'.$host.$uri.' HTTP/1.1'."\r\n";
	$header .= 'Host: '.$host." \r\n";
	$header .= 'User-Agent: '.$_SERVER['HTTP_USER_AGENT']." \r\n";
	$header .= 'Referer: '.$_SERVER['HTTP_REFERER']." \r\n";
	$header .= 'Content-Type: application/x-www-form-urlencoded'."\r\n";
	$header .= 'Content-Length: '.strlen($data)."\r\n";
	$header .= 'Connection: close'."\r\n\r\n";

	$socket = fsockopen($host,80,$errno,$errstr);
	if(!$socket) return '<strong>Error '.$errno.'</strong> '.$errstr;
	$header .= $data;
	fputs($socket,$header);
	$response='';
	while(!feof($socket)) $response.= fgets($socket, 4096);
	fclose($socket);
 	return strstr($response,'<');
}

if(count($_POST)>0){
  $data = "";
  foreach($_POST as $key=>$val) {
      if(!empty($data)) $data.= '&';
      $data.= $key."=".urlencode($val);
  }
	echo locationPost($_SERVER['HTTP_HOST'],'/servlet/CyberplusRequest',$data);
	exit;
}





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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message