Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-2758

MultipartRequestWrapper.getParameterMap doesn't return a Map of String[] parameters as required by the httpServletRequest specification

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 4.1.1
    • 3.6.5, 4.1
    • core
    • None

      MultipartRequestWrapper.getParameterMap() returns a Map<String, String>.
      However, according to the HttpServletRequest specification this should be Map<String, String[]>.

      See http://java.sun.com/javaee/5/docs/api/javax/servlet/ServletRequest.html#getParameterMap()

      The values in the parameter map are of type String array

      This breaks any custom code that uses request.getParameterMap() inside magnolia, since it ends up in classCast exceptions trying to cast String to String[].

        Acceptance criteria

              fgiust Fabrizio Giustina
              fgiust Fabrizio Giustina
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD