Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-5516

ParameterSupportHttpServletRequestWrapper is not conform to Servlet API 3.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • Engine 2.4.6
    • None
    • Engine
    • 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

      Attachments

        Activity

          People

            Unassigned Unassigned
            diru Dirk Rudolph
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: