You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Gyorgy Gyepesi <gg...@mindmaker.hu> on 2001/12/10 15:43:41 UTC

Tomcat 4.01 CRITICAl ERROR in ServletInputStream implementation

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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Tomcat 4.01 CRITICAl ERROR in ServletInputStream implementation

Posted by jean-frederic clere <jf...@fujitsu-siemens.com>.
Gyorgy Gyepesi wrote:
> 
> 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.

That was fixed in jakarta-tomcat-connectors...
And in
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.1/src/webapp-module-1.0.1-tc401-src.tar.gz

> 
> Regards
> 
> Gyorgy
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>