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

IllegalArgumentException: Invalid range for Docker Pushes

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.28.0
    • 3.26.1, 3.27.0
    • Docker
    • 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

            Unassigned Unassigned
            mshevelov Mykyta Shevelov
            Peter Lynch Peter Lynch
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              tigCommentSecurity.panel-title