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

Details

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

    Description

      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[].

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD