jsr340-experts@servlet-spec.java.net

[jsr340-experts] About SERVLET_SPEC-33: HttpServletRequest.getPart/getParts

From: Shing Wai Chan <shing.wai.chan_at_oracle.com>
Date: Tue, 31 Jul 2012 16:57:50 -0700

I am looking at issue, http://java.net/jira/browse/SERVLET_SPEC-33 ,
" Need to clarify the behavior of HttpServletRequest.getPart/getParts"

We propose to throw IllegalStateException for getPart/getParts when
there is no @MultipartConfig or multi-config in deployment descriptors.
Javadoc changes:
Original:
    |IllegalStateException| - if the request body is larger than
    maxRequestSize, or any Part in the request is larger than maxFileSize

New:
    |IllegalStateException| - if the request body is larger than
    maxRequestSize, or any Part in the request is larger than maxFileSize , or there is no @MultipartConfig or multi-config in deployment
descriptors

Please let me know if there is any comment.

Shing Wai Chan