Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-26902

Support multiple HTTP ranges in a request

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: New
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.0.0
    • Fix Version/s: None
    • Component/s: Transport
    • Labels:
    • Notability:
      4

      Description

      Currently Nexus Repo 3 only supports HTTP GET requests that contain a single range in the "range" header.

      curl -v -r 10-20 http://localhost:8081/repository/maven-public/ant/ant/1.6/ant-1.6.pom
      

      The above results in an HTTP 206 (partial content) response, as expected, and 11 bytes sent back

      However if multiple ranges are used all content is always returned:

      curl -v -r 10-20,30-40 http://localhost:8081/repository/maven-public/ant/ant/1.6/ant-1.6.pom -v
      

      The above gets a 200 response, and all content is returned.

      For effective retrieval of large files with tools like zsync (http://zsync.moria.org.uk/) it's important to be able to retrieve multiple parts in a single HTTP request.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            rseddon Rich Seddon
            Last Updated By:
            Peter Lynch Peter Lynch
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Date of First Response:

                tigCommentSecurity.panel-title