Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-1285

Incorrect JAVA EE API usage in FileUpload.jsp

    XMLWordPrintable

    Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 9.5.3
    • 9.5.5, 10.0.1, 10.1.0-Xpress
    • console
    • None
    • GlassFish 3.1.2
    • Rank:
      1|hzn0gv:

      Description

      The FileUpload.jsp is using both request#getParameter and request#getInputStream, whereas the JavaDoc states:
      "If the parameter data was sent in the request body, such as occurs with an HTTP POST request, then reading the body directly via getInputStream() or getReader() can interfere with the execution of this method."

      This can actually result in a bug where the picked file is not getting uploaded to the console, because the file content cannot be read from the inputstream...

        Attachments

          Activity

            People

            kohei kohei
            peter.major Peter Major [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: