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

Group repository registration API requests may fail

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.28.1
    • Fix Version/s: 3.29.1
    • Component/s: nuget-v3
    • Labels:
    • Notability:
      2

      Description

      For certain NuGet group repository requests to registration endpoints, these requests may fail.

      Even if a NuGet proxy repo is configured to use https://api.nuget.org/v3/index.json remote URL and that repo is in a group repository member list, the request for a specific package may fail.

      The nexus.log may contain the following WARN message:

      2020-11-09 09:46:24,136-0500 WARN  [qtp705407730-6731]  username com.sonatype.nexus.repository.nuget.internal.v3.NugetV3GroupRegistrationIndexFacet - No content to map due to end-of-input
       at [Source: (org.apache.http.impl.io.EmptyInputStream); line: 1, column: 0]
      com.fasterxml.jackson.databind.exc.MismatchedInputException: No content to map due to end-of-input
       at [Source: (org.apache.http.impl.io.EmptyInputStream); line: 1, column: 0]
      	at com.fasterxml.jackson.databind.exc.MismatchedInputException.from(MismatchedInputException.java:59)
      	at com.fasterxml.jackson.databind.ObjectMapper._initForReading(ObjectMapper.java:4624)
      	at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4469)
      	at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3471)
      	at com.sonatype.nexus.repository.nuget.internal.v3.NugetV3GroupRegistrationPageFacet.downloadRegistrationPage(NugetV3GroupRegistrationPageFacet.java:69)
      	at com.sonatype.nexus.repository.nuget.internal.v3.NugetV3GroupRegistrationPageFacet.rewritePage(NugetV3GroupRegistrationPageFacet.java:46)
      	at com.sonatype.nexus.repository.nuget.internal.v3.NugetV3GroupRegistrationIndexFacet.rewriteIndexes(NugetV3GroupRegistrationIndexFacet.java:83)
      	at com.sonatype.nexus.repository.nuget.internal.v3.NugetV3GroupRegistrationIndexFacet.lambda$0(NugetV3GroupRegistrationIndexFacet.java:54)
      	at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
      	at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382)
      	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
      	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
      	at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
      	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
      	at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
      	at com.sonatype.nexus.repository.nuget.internal.v3.NugetV3GroupRegistrationIndexFacet.mergeResponses(NugetV3GroupRegistrationIndexFacet.java:64)
      	at com.sonatype.nexus.repository.nuget.internal.v3.NugetV3GroupRegistrationHandler.mergeIndexes(NugetV3GroupRegistrationHandler.java:94)
      	at com.sonatype.nexus.repository.nuget.internal.v3.NugetV3GroupRegistrationHandler.doGet(NugetV3GroupRegistrationHandler.java:69)
      	at org.sonatype.nexus.repository.group.GroupHandler.handle(GroupHandler.java:100)
      

      This has been reproduced for example when this request was made to a group repository:

      v3/registration/5/jetbrains.resharper.commandlinetools/index.json

       

      The end result is that the client can not find certain packages which clearly exist at nuget.org, potentially failing builds that rely on these packages.

      Expected

      If a group repository contains a valid proxy repo to https://api.nuget.org/v3/index.json, then NXRM should be able to proxy packages from there.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mbucher Michael Bucher
              Reporter:
              plynch Peter Lynch
              Last Updated By:
              Joe Tom
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title