Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-26082

UI throws 500 error on clicking Test button for a remote registry

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: 4 - Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Remote Repository , UI
    • Labels:
      None
    • Location:
      External

      Description

      Description: 

      UI throws 500 error on clicking Test button for a remote registry https://repo.saltstack.com/apt/ubuntu/ 

      Replication steps:

      1. Create a debian remote repository by pointing to https://repo.saltstack.com/apt/ubuntu/ 

      2. Click on Test button. UI throws 500 error page. 

      Below are the logs observed from Artifactory service logs. 

      2021-06-26T02:33:11.589Z [jfrt ] [DEBUG] [7e96b930044fbf0a] [.u.RemoteRepositoryTestUrl:160] [http-nio-8081-exec-4] - Remote repository is hosted on Amazon S3, trying without a trailing slash
      
      2021-06-26T02:33:11.591Z [jfrt ] [ERROR] [7e96b930044fbf0a] [c.e.m.GlobalExceptionMapper:48] [http-nio-8081-exec-4] - nulljava.lang.NullPointerException: null at org.artifactory.util.HttpUtils.getRequestPath(HttpUtils.java:455) at org.artifactory.util.HttpUtils.encodeUrl(HttpUtils.java:505) at org.artifactory.ui.rest.service.admin.configuration.repositories.util.TestMethodFactory.createTestMethod(TestMethodFactory.java:86) at org.artifactory.ui.rest.service.admin.configuration.repositories.util.RemoteRepositoryTestUrl.tryS3(RemoteRepositoryTestUrl.java:162) at org.artifactory.ui.rest.service.admin.configuration.repositories.util.RemoteRepositoryTestUrl.handleSpecialCases(RemoteRepositoryTestUrl.java:131) at org.artifactory.ui.rest.service.admin.configuration.repositories.util.RemoteRepositoryTestUrl.testConnection(RemoteRepositoryTestUrl.java:102) at org.artifactory.ui.rest.service.admin.configuration.repositories.util.RemoteRepositoryTestUrl.execute(RemoteRepositoryTestUrl.java:74) at org.artifactory.rest.common.service.ServiceExecutor.process(ServiceExecutor.java:39) at org.artifactory.rest.common.resource.BaseResource.runService(BaseResource.java:105) at org.artifactory.ui.rest.resource.admin.configuration.repositories.RepoConfigResource.remoteRepositoryUrlTest(RepoConfigResource.java:137) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory.lambda$static$0(ResourceMethodInvocationHandlerFactory.java:76) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:148) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:191) at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:200) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:103) at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:493) at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:415) at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:104) at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:277) at org.glassfish.jersey.internal.Errors$1.call(Errors.java:272) at org.glassfish.jersey.internal.Errors$1.call(Errors.java:268) at org.glassfish.jersey.internal.Errors.process(Errors.java:316) at org.glassfish.jersey.internal.Errors.process(Errors.java:298) at org.glassfish.jersey.internal.Errors.process(Errors.java:268) at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:289) at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:256) at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:703) at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:416) at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:370) at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:389) at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:342) at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:229) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.artifactory.webapp.servlet.RepoFilter.execute(RepoFilter.java:201) at org.artifactory.webapp.servlet.RepoFilter.doFilter(RepoFilter.java:103) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.artifactory.webapp.servlet.authentication.ArtifactoryAuthenticationFilterChain.lambda$doFilter$1(ArtifactoryAuthenticationFilterChain.java:145) at org.artifactory.webapp.servlet.authentication.PropsAuthenticationFilter.doFilter(PropsAuthenticationFilter.java:134) at org.artifactory.webapp.servlet.authentication.ArtifactoryAuthenticationFilterChain.doFilter(ArtifactoryAuthenticationFilterChain.java:183) at org.artifactory.webapp.servlet.AccessFilter.authenticateAndExecute(AccessFilter.java:312) at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:177)
      

      Expected behaviour:

      Artifactory should show right message whether it is able to connect to this url. If Artifactory is not able to connect the right message should be displayed. 

      Customer pain level is 0 (Customer has not complained yet, This is found internally while doing a replication)

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            gajapathik Gajapathi Kimidi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Sync Status

                Connection: RTFACT Sync
                RTMID-26083 -
                SYNCHRONIZED
                • Last Sync Date: