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

getParameters(String name) internally uses getParameterMap() causing OutOfMemoryError on file upload

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Engine 2.0.6
    • Engine 2.1.0
    • Engine
    • None

    Description

      The HttpServletRequest.getParameters(String name) internally uses a method which causes all request parameters to be converted to strings before accessing the requested parameter. This may cause an OutOfMemoryError if the request contains (big) uploaded files.

      The fix is that the getParameters method is implemented in terms of accessing the RequestParameterMap and converting the RequestParamer[] to a String[] for the single parameter requested.

      Attachments

        Activity

          People

            fmeschbe Felix Meschberger
            fmeschbe Felix Meschberger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: