You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2015/06/16 13:14:45 UTC
[Bug 57938] HttpServletRequest.getParts causes NPE when
allowCasualMultipartParsing set "true" and multipart field is empty
https://bz.apache.org/bugzilla/show_bug.cgi?id=57938
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from Mark Thomas <ma...@apache.org> ---
Thanks for the report. These issues have been fixed in trunk (9.0.x), 8.0.x
(for 8.0.24 onwards) and 7.0.x (for 7.0.63 onwards).
I opted for a slightly different fix for the first issue. Negative values are
now converted to 0 in the MultipartConfigElement constructor.
maxPostSize=0 was really a bug in how allowCasualMultipartParsing was
implemented but I opted to switch the meaning if zero to a limit of zero since
a) it is more intuitive and b) it aligns with maxSavePostSize.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org