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

POST parameters are read from request body even when contentType is application/x-www-form-urlencoded

    XMLWordPrintableJSON

Details

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

    Description

      In a POST request with content type application/x-www-form-urlencoded, Sling's internal ParameterSupport class (in sling-core) builds a parameter map by parsing the request body available via ServletRequest.getInputStream(). However, if some other component (e.g. a servlet filter) has already looked at some parameter, ServletRequest.getInputStream() will return an empty stream, compliant with Servlet API Specification 2.4 SRV.4.1.1.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: