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

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

    Details

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

      Description

      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?

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                bill.burke Bill Burke
                Reporter:
                wherget Wolfgang Herget
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: