Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-13125

HTTP Content-Range Header one byte past file length and missing "bytes" unit

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core

      Downloading a PDF artifact using Chrome (17.0.963.79 m on Windows) the HTTP header for the last partial entity-body sent back by Jenkins contains:
      Content-Range: 2613923-2646691/2646691\r\n
      I believe this is wrong according to http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.16 . I believe the last range should be 2613923-2646690/2646691, because the numbers are 0-indexed.

      I'm not sure whether this is caused by this or is a separate issue, but Chrome keeps requesting the same last partial segment and Jenkins returns the same one in an endless loop. Thus Chrome is stuck loading the PDF at 100% in the endless loop. This only happens with the Chrome embedded PDF viewer. The file downloads correctly with "Save as".

      Update: It now appears that the content-range unit "bytes" is missing from the header.

          [JENKINS-13125] HTTP Content-Range Header one byte past file length and missing "bytes" unit

          Roland Schulz created issue -
          Roland Schulz made changes -
          Component/s New: www [ 15484 ]
          Component/s Original: core [ 15593 ]
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Eric Blom made changes -
          Resolution Original: Fixed [ 1 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]
          Jesse Glick made changes -
          James Ascroft-Leigh made changes -
          Description Original: Downloading a PDF artifact using Chrome (17.0.963.79 m on Windows) the HTTP header for the last partial entity-body sent back by Jenkins contains:
          Content-Range: 2613923-2646691/2646691\r\n
          I believe this is wrong according to http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.16 . I believe the last range should be 2613923-2646690/2646691, because the numbers are 0-indexed.

          I'm not sure whether this is caused by this or is a separate issue, but Chrome keeps requesting the same last partial segment and Jenkins returns the same one in an endless loop. Thus Chrome is stuck loading the PDF at 100% in the endless loop. This only happens with the Chrome embedded PDF viewer. The file downloads correctly with "Save as".
          New: Downloading a PDF artifact using Chrome (17.0.963.79 m on Windows) the HTTP header for the last partial entity-body sent back by Jenkins contains:
          Content-Range: 2613923-2646691/2646691\r\n
          I believe this is wrong according to http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.16 . I believe the last range should be 2613923-2646690/2646691, because the numbers are 0-indexed.

          I'm not sure whether this is caused by this or is a separate issue, but Chrome keeps requesting the same last partial segment and Jenkins returns the same one in an endless loop. Thus Chrome is stuck loading the PDF at 100% in the endless loop. This only happens with the Chrome embedded PDF viewer. The file downloads correctly with "Save as".

          *Update*: It now appears that the content-range unit "bytes" is missing from the header.
          Summary Original: HTTP Content-Range Header one byte past file length New: HTTP Content-Range Header one byte past file length and missing "bytes" unit
          Kohsuke Kawaguchi made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Reopened [ 4 ] New: Resolved [ 5 ]
          Daniel Beck made changes -
          Labels New: 1.532.2-fixed
          Jenkins IRC Bot made changes -
          Component/s New: core [ 15593 ]
          Component/s Original: www [ 15484 ]
          Ivo Jimenez made changes -
          Link New: This issue is related to JENKINS-33195 [ JENKINS-33195 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 143588 ] New: JNJira + In-Review [ 190633 ]

            Unassigned Unassigned
            rschulz Roland Schulz
            Votes:
            5 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: