Skip to main content

[JIRA] Commented: (SERVLET_SPEC-33) Need to clarify the behavior of HttpServletRequest.getPart/getParts

  • From: "markt_asf (JIRA)" <jira-no-reply@...>
  • To: issues@...
  • Subject: [JIRA] Commented: (SERVLET_SPEC-33) Need to clarify the behavior of HttpServletRequest.getPart/getParts
  • Date: Sat, 28 Jul 2012 00:44:55 +0000 (GMT+00:00)
  • Auto-submitted: auto-generated


    [ 
http://java.net/jira/browse/SERVLET_SPEC-33?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=343853#action_343853
 ] 

markt_asf commented on SERVLET_SPEC-33:
---------------------------------------

Rather than an Exception, returning null / an empty collection is also an 
option.

I prefer IllegalStateException over UnsupportedOperationException but have no 
string preference between throwing an Exception and returning null / an empty 
collection.

> Need to clarify the behavior of HttpServletRequest.getPart/getParts
> -------------------------------------------------------------------
>
>                 Key: SERVLET_SPEC-33
>                 URL: http://java.net/jira/browse/SERVLET_SPEC-33
>             Project: servlet-spec
>          Issue Type: Bug
>            Reporter: Shing Wai Chan
>            Assignee: Shing Wai Chan
>
> In the javadoc of httpServletRequest.getPart/getParts, it does not mention 
> the behavior of calling these API when there is no @MultipartConfig and 
> multipart-config in deployment descriptors.
> One should exception in this case. UnsupportedOperationException? 
> IllegalStateException?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://java.net/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


[JIRA] Commented: (SERVLET_SPEC-33) Need to clarify the behavior of HttpServletRequest.getPart/getParts

Shing Wai Chan (JIRA) 07/26/2012

<Possible follow-up(s)>

[JIRA] Commented: (SERVLET_SPEC-33) Need to clarify the behavior of HttpServletRequest.getPart/getParts

markt_asf (JIRA) 07/28/2012
 
 
Close
loading
Please Confirm
Close