Author: billbarker
Date: Sun Aug 27 20:47:52 2006
New Revision: 437521

URL: http://svn.apache.org/viewvc?rev=437521&view=rev
Log:
Fix login replay problem with the AJP/1.3 Connector

Fix for Bug: #40306
Submitted by: Aaron Loucks <aloucks at cofront dot net>

Modified:
    tomcat/connectors/trunk/jk/java/org/apache/coyote/ajp/AjpAprProcessor.java
    tomcat/connectors/trunk/jk/java/org/apache/jk/core/MsgContext.java

Modified: 
tomcat/connectors/trunk/jk/java/org/apache/coyote/ajp/AjpAprProcessor.java
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/java/org/apache/coyote/ajp/AjpAprProcessor.java?rev=437521&r1=437520&r2=437521&view=diff
==============================================================================
--- tomcat/connectors/trunk/jk/java/org/apache/coyote/ajp/AjpAprProcessor.java 
(original)
+++ tomcat/connectors/trunk/jk/java/org/apache/coyote/ajp/AjpAprProcessor.java 
Sun Aug 27 20:47:52 2006
@@ -578,6 +578,7 @@
 
         } else if (actionCode == ActionCode.ACTION_REQ_SET_BODY_REPLAY) {
 
+            request.setContentLength(-1); // reset content length
             // Set the given bytes as the content
             ByteChunk bc = (ByteChunk) param;
             bodyBytes.setBytes(bc.getBytes(), bc.getStart(), bc.getLength());

Modified: tomcat/connectors/trunk/jk/java/org/apache/jk/core/MsgContext.java
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/java/org/apache/jk/core/MsgContext.java?rev=437521&r1=437520&r2=437521&view=diff
==============================================================================
--- tomcat/connectors/trunk/jk/java/org/apache/jk/core/MsgContext.java 
(original)
+++ tomcat/connectors/trunk/jk/java/org/apache/jk/core/MsgContext.java Sun Aug 
27 20:47:52 2006
@@ -351,6 +351,7 @@
         } else if ( actionCode == ActionCode.ACTION_REQ_SET_BODY_REPLAY ) {
             if( log.isTraceEnabled() )
                 log.trace("Replay ");
+            req.setContentLength(-1); // reset so re-read
             ByteChunk bc = (ByteChunk)param;
             jkIS.setReplay(bc);
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to