DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5148>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5148

mod_webapp chokes on binary data (file upload)

           Summary: mod_webapp chokes on binary data (file upload)
           Product: Tomcat 4
           Version: 4.0.1 Final
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: WARP Connector
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [EMAIL PROTECTED]


Using multipart file uploads (tested on RH7 and OSX) using 
mod_webapp as the connector, binary data uploads bomb while text file 
uploads work.

Going direct to the standalone tomcat, file uploads work fine. Therefore 
the problem is in the connector. Below are two InputStream printouts of a 
file upload. The first one is a gif file, the second is a text file:

=========FIRST FILE OUTPUT HERE
first line-----------------------------20609257329656
Content-Disposition: form-data; name="file"; filename="architecture.gif"
Content-Type: image/gif

GIF89a'X?


=========SECOND FILE OUTPUT HERE


first line-----------------------------25876707413212
Content-Disposition: form-data; name="file"; filename="test.txt"
Content-Type: text/plain

test file contents
-----------------------------25876707413212
Content-Disposition: form-data; name="version"

5
-----------------------------25876707413212
Content-Disposition: form-data; name="description"

desc here
-----------------------------25876707413212
Content-Disposition: form-data; name="taskID"

0
-----------------------------25876707413212
Content-Disposition: form-data; name="docuserID"

1
-----------------------------25876707413212
Content-Disposition: form-data; name="projID"

10697
-----------------------------25876707413212--

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

Reply via email to