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

NumberFormatException in NoContent.isContentLengthZero for Content-Length > Integer.MAX_VALUE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.0.9.Final
    • 3.0.6.Final
    • None
    • None

      When wanting to read from a request with a Content-Length header that is a number, but a value bigger than Integer.MAX_VALUE (e.g. an upload of >2GB), I get a NumberFormatException. I think I've traced the origin back to the function mentioned in the issue subject, which is from my use case using InputStreamProvider.
      In theory, I should be able to read arbitrary amounts of data from such an InputStream, right?
      Might I be headed towards a spec issue here, i.e. Response only specifies int as length type?

              patriot1burke@gmail.com Bill Burke (Inactive)
              wherget Wolfgang Herget (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: