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

encountering an exception processing payloads for a single NuGet group member repository can stop all group member processing

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.29.0
    • 3.26.1
    • NuGet
    • 3

    Description

      When processing an inbound Nuget group repository request, if there is a runtime exception processing the response payload of a proxy repository remote, then the inbound request will fail completely and not process any other group member.

      Example exception where group member processing stopped
      2020-10-19 10:39:19,438-0700 WARN  [qtp1103545988-20693]  *UNKNOWN org.sonatype.nexus.repository.httpbridge.internal.ViewServlet - Failure servicing: GET /repository/nuget-v3-group/v3/query/beta?q=asd&skip=0&take=26&prerelease=true&supportedFramework=.NETFramework,Version=v4.5.2
      java.lang.NullPointerException: null
       at com.sonatype.nexus.repository.nuget.internal.v3.NugetProxySearchHandler.rewriteRegistrationUrls(NugetProxySearchHandler.java:108)
       at com.sonatype.nexus.repository.nuget.internal.v3.NugetProxySearchHandler.createPayload(NugetProxySearchHandler.java:87)
       at com.sonatype.nexus.repository.nuget.internal.v3.NugetProxySearchHandler.handle(NugetProxySearchHandler.java:79)
       at org.sonatype.nexus.repository.view.Context.proceed(Context.java:80)
       at com.sonatype.nexus.repository.nuget.internal.v3.NugetServicesHandler.handle(NugetServicesHandler.java:34)
       at org.sonatype.nexus.repository.view.Context.proceed(Context.java:80)
       at org.sonatype.nexus.repository.storage.UnitOfWorkHandler.handle(UnitOfWorkHandler.java:39)
       at org.sonatype.nexus.repository.view.Context.proceed(Context.java:80)
       at org.sonatype.nexus.repository.routing.internal.RoutingRuleHandler.handle(RoutingRuleHandler.java:52)
       at org.sonatype.nexus.repository.view.Context.proceed(Context.java:80)
       at org.sonatype.nexus.repository.security.SecurityHandler.handle(SecurityHandler.java:51)
       at org.sonatype.nexus.repository.view.Context.proceed(Context.java:80)
       at com.sonatype.analytics.internal.handler.AnalyticsMeteringHandler.handle(AnalyticsMeteringHandler.java:69)
       at org.sonatype.nexus.repository.view.Context.proceed(Context.java:80)
       at org.sonatype.nexus.repository.view.handlers.TimingHandler.handle(TimingHandler.java:58)
       at org.sonatype.nexus.repository.view.Context.proceed(Context.java:80)
       at org.sonatype.nexus.repository.view.Context.start(Context.java:114)
       at org.sonatype.nexus.repository.view.Router.dispatch(Router.java:65)
       at org.sonatype.nexus.repository.view.ConfigurableViewFacet.dispatch(ConfigurableViewFacet.java:52)
       at org.sonatype.nexus.repository.group.GroupHandler.getFirst(GroupHandler.java:134)
       at com.sonatype.nexus.repository.nuget.internal.v3.NugetV3GroupAbstractHandler.getFromRepository(NugetV3GroupAbstractHandler.java:132)
       at com.sonatype.nexus.repository.nuget.internal.v3.NugetV3GroupAbstractHandler.getRepositoryPayloads(NugetV3GroupAbstractHandler.java:65)
       at com.sonatype.nexus.repository.nuget.internal.v3.NugetV3GroupSearchHandler.doGet(NugetV3GroupSearchHandler.java:67)
       at org.sonatype.nexus.repository.group.GroupHandler.handle(GroupHandler.java:95)
      

      Individual proxy repo response payload processing errors should not completely fail processing of all other repository group members

      Attachments

        Issue Links

          Activity

            People

              aishchenko Artem Ishchenko
              plynch Peter Lynch
              Joe Tom Joe Tom
              NXRM - Trinity
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                tigCommentSecurity.panel-title