cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jorg Heymans ...@domek.be>
Subject the multipartparser
Date Tue, 02 Nov 2004 14:29:15 GMT
Hi,

Is there a reason why we have our own multipart parser instead of using 
commons-fileupload? This has come up already about 1.5 years ago [1].

I have a problem with the multipart parser in IE and Opera (not in 
Firefox), reproduceable with the following form

<form name="myform" enctype="multipart/form-data" action="anypipeline" 
method="POST">
<input type="submit"/>
</form>

results in
o.a.c.s.m.MultipartException: Malformed stream
at o.a.c.s.m.MultipartParser.parseMultiPart(MultipartParser.java:132)
at o.a.c.s.m.MultipartParser.getParts(MultipartParser.java:101)
at o.a.c.s.m.MultipartParser.getParts(MultipartParser.java:107)
at o.a.c.s.m.RequestFactory.getServletRequest(RequestFactory.java:94)
at o.a.c.s.CocoonServlet.service(CocoonServlet.java:1004)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)


There is at least one other issue with it [2], and parsePart() in 
MultiPartParser contains "// FIXME: multipart/mixed parts are untested."


Just wanted to get a few opinions before i attempt to implement this.

Regards
Jorg

[1] http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=105363507529701&w=2
[2] http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24289


Mime
View raw message