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

Repository health check can fail if the same asset exists in more than one repository.

    XMLWordPrintable

    Details

    • Notability:
      2

      Description

      If the same asset exists in more than one repository the repository health check code can fail.  This occurs because the code does a search for the asset by name, and only looks at the first result returned.  The stack trace seen when this fails in 3.16.1 looks like this:

       

      2019-10-14 17:17:11,092+0000 ERROR [qtp86003547-138818] dddp1lc9a001 exk39 org.sonatype.nexus.extdirect.internal.ExtDirectExceptionHandler - Failed to invoke action method: healthcheck_AssetDetail.identify, java-method: com.sonatype.nexus.plugins.healthcheck.pro.internal.ui.HealthCheckAssetDetailComponent.identify
      java.lang.IllegalArgumentException: Asset com/fasterxml/jackson/core/jackson-databind/2.9.8/jackson-databind-2.9.8.jar not found in repository public-maven-proxy
      at com.google.common.base.Preconditions.checkArgument(Preconditions.java:437)
      at com.sonatype.nexus.plugins.healthcheck.pro.internal.ui.AssetIdentificationService.identify(AssetIdentificationService.java:111)
      at com.sonatype.nexus.plugins.healthcheck.pro.internal.ui.AssetIdentificationService$identify.call(Unknown Source)
      at com.sonatype.nexus.plugins.healthcheck.pro.internal.ui.HealthCheckAssetDetailComponent.identify(HealthCheckAssetDetailComponent.groovy:47)
      at com.palominolabs.metrics.guice.ExceptionMeteredInterceptor.invoke(ExceptionMeteredInterceptor.java:23)
      at com.palominolabs.metrics.guice.TimedInterceptor.invoke(TimedInterceptor.java:26)

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mcculls Stuart McCulloch
              Reporter:
              rseddon Rich Seddon
              Last Updated By:
              Wes Wannemacher Wes Wannemacher
              Team:
              NXRM - Operations/Groot
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title