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