Hi David,

On Tuesday 08 January 2002 12:50 am, you wrote:

> i am using com.oreilly.servlet package and i can't upload binary files
>
> well actually i can, but all FF bytes in the files are lost! quite annoying
> indeed all binary files are corrupted it works well for text files (they
> don't have FF bytes!)
>
> i tested the same code with a stand-alone tomcat 4.0.1 and it works fine!
> so i looked in the archives and found this link which seems related to my
> pb:
> http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg39837.html
>
> does anyone have a clue on a possible workaround ?
> or is a patch available ?
> or when will a patch be available/released ?

Here is a patch for the mod_webapp file upload problem (it's in 
jakarta-tomcat-connectors CVS).

Hope it helps,

-- Rodney


Index: catalina/src/share/org/apache/catalina/connector/warp/WarpRequest.java
===================================================================
RCS file: /home/cvs/jakarta-tomcat-connectors/webapp/java/WarpRequest.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- catalina/src/share/org/apache/catalina/connector/warp/WarpRequest.java 2001/07/25 
22:32:05     1.9
+++ catalina/src/share/org/apache/catalina/connector/warp/WarpRequest.java 2001/10/19 
+19:18:28     1.10
@@ -139,7 +139,7 @@
                 throw new IOException("Invalid WARP packet type for body");

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

             this.packet.reset();
             this.packet.setType(Constants.TYPE_CBK_READ);

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to