Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-779

DataSourceProvider does not properly read InputStream

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 3.0.9.Final
    • Component/s: jaxrs
    • Labels:
      None

      Description

      The org.jboss.resteasy.plugins.providers.DataSourceProvider class does not properly read from the request input stream. This may result in reading only a part of the input stream.

      The method readDataSource() reads from the input stream without actually verifying that the end of the input stream has been reached. Javadoc of InputStream.read() says: "...Reads up to len bytes of data from the input stream into an array of bytes. An attempt is made to read as many as len bytes, but a smaller number may be read. ...".

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                bill.burke Bill Burke
                Reporter:
                mcentner Martin Bonato
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: