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

Health check details can fail with NPE if IQ server is setup but disabled

Details

    • 2
    • 2

    Description

      Configure a pypi proxy repository in Nexus Repo 3 pro, download a package into it:

      http://localhost:8081/repository/pypi-proxy/packages/pytz/2020.1/pytz-2020.1-py2.py3-none-any.whl

       

      Enable health check on the proxy repository.  

      Browse to the downloaded component and attempt to view health check details. This will fail with an NPE:

      020-09-16 10:15:13,351-0500 WARN [qtp1357791888-50] admin org.sonatype.nexus.siesta.internal.UnexpectedExceptionMapper - (ID d3a55c24-8277-4e50-981e-054107b52472) Unexpected exception: java.lang.NullPointerException
      java.lang.NullPointerException: null
      at com.sonatype.nexus.plugins.healthcheck.pro.internal.ui.AssetIdentificationService.getComponentFormat(AssetIdentificationService.java:287)
      at com.sonatype.nexus.plugins.healthcheck.pro.internal.ui.AssetIdentificationService.isSupportedFormat(AssetIdentificationService.java:198)
      at com.sonatype.nexus.plugins.healthcheck.pro.rest.HealthCheckFileDetailResource.doGet(HealthCheckFileDetailResource.java:152)
      at com.sonatype.nexus.plugins.healthcheck.pro.rest.HealthCheckFileDetailResource.getComponentDetails(HealthCheckFileDetailResource.java:136)
      at org.apache.shiro.guice.aop.AopAllianceMethodInvocationAdapter.proceed(AopAllianceMethodInvocationAdapter.java:49)
      at org.apache.shiro.authz.aop.AuthorizingAnnotationMethodInterceptor.invoke(AuthorizingAnnotationMethodInterceptor.java:68)
      at org.apache.shiro.guice.aop.AopAllianceMethodInterceptorAdapter.invoke(AopAllianceMethodInterceptorAdapter.java:36)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)

       

       

      Attachments

        Activity

          People

            aornatovskyy Anatoliy Ornatovskyy [X] (Inactive)
            rseddon Rich Seddon
            Michael Oliverio Michael Oliverio
            NXRM - Trinity
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              tigCommentSecurity.panel-title