tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gyorgy Gyepesi" <ggyep...@mindmaker.hu>
Subject Tomcat 4.01 CRITICAl ERROR in ServletInputStream implementation
Date Mon, 10 Dec 2001 14:43:41 GMT
URGENT!!!! PLEASE SEND REPLY ASAP!!

The ServletInputStream implementation reports EOF once a byte of value 0xff
appears in the request body (of content-type application/octet-stream
without content-endcoding); the probable cause is the following line in

org.apache.catalina.connector.warp.WarpRequest:

            if (this.packet.pointer<this.packet.size)
                return((int)this.packet.buffer[this.packet.pointer++]);

instead of

            if (this.packet.pointer<this.packet.size)
                return(0xff &
(int)this.packet.buffer[this.packet.pointer++]);

(WarpRequest from
http://cvs.apache.org/viewcvs/jakarta-tomcat-4.0/catalina/src/share/org/apac
he/catalina/connector/warp/WarpRequest.java?rev=1.8&content-type=text/vnd.vi
ewcvs-markup
)

This behaviour MAKES Tomcat UNUSABLE for clients sending binary data in the
POST request body.

Regards

Gyorgy




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


Mime
View raw message