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

DataSourceProvider does not properly read InputStream

XMLWordPrintable

    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. ...".

            patriot1burke@gmail.com Bill Burke (Inactive)
            Martin.Bonato@prime-sign.com Martin Bonato (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: