Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Won't Fix
-
Engine 2.4.6
-
None
-
None
Description
According to [1] HttpServletRequest#getParts() and HttpServletRequest#getPart(String) throw ServletExceptions in case the request ist not a multpart/ request.
In the Sling Engine implementation this seems not to be the case [2][3]. Not completely sure if this applies to the other exception types as well but i think so.
[1] http://docs.oracle.com/javaee/7/api/javax/servlet/http/HttpServletRequest.html#getParts--
[2] http://svn.apache.org/viewvc/sling/trunk/bundles/engine/src/main/java/org/apache/sling/engine/impl/parameters/ParameterMap.java?view=markup#l127
[3] http://svn.apache.org/viewvc/sling/trunk/bundles/engine/src/main/java/org/apache/sling/engine/impl/parameters/ParameterSupportHttpServletRequestWrapper.java?view=markup#l59