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

IllegalArgumentException: Invalid range for Docker Pushes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.26.1, 3.27.0
    • Fix Version/s: 3.28.0
    • Component/s: Docker
    • Labels:
      None

      Description

      While pushing a Docker image to the docker hosted repository:

      2020-09-17 18:06:31,564+0300 WARN  [qtp817517221-241] admin org.sonatype.nexus.repository.docker.internal.V2Handlers - Error: PATCH /v2/node/blobs/uploads/49033084-bf2d-41c1-ac91-31fda58bb461
      java.lang.IllegalArgumentException: Invalid range: [0..-1]
              at com.google.common.collect.Range.<init>(Range.java:357)
              at com.google.common.collect.Range.create(Range.java:155)
              at com.google.common.collect.Range.closed(Range.java:180)
              at org.sonatype.nexus.repository.docker.internal.Upload.addBlob(Upload.java:133)
              at org.sonatype.nexus.repository.docker.internal.UploadManagerImpl.add(UploadManagerImpl.java:77)
              at org.sonatype.nexus.repository.docker.internal.orient.DockerHostedFacetImpl.uploadBlobRange(DockerHostedFacetImpl.java:617)
              at org.sonatype.nexus.repository.docker.internal.DockerHostedFacet$uploadBlobRange$10.call(Unknown Source)
              at org.sonatype.nexus.repository.docker.internal.V2Handlers$_closure4.doCall(V2Handlers.groovy:139)
              at sun.reflect.GeneratedMethodAccessor166.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      

      It can be reproduced by using heavy Docker images while pushing them in multithreading.
      I didn't experience that issue on the NXRM v3.28

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            mshevelov Mykyta Shevelov
            Last Updated By:
            Peter Lynch
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title