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

HTTP Proxy host name setting accepts invalid characters such as space which can prevent server start

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2.0
    • Fix Version/s: 3.3.0
    • Component/s: Transport, UI
    • Labels:
    • Story Points:
      2
    • Sprint:
      Sprint 91

      Description

      The host name filed of Nexus 3 http proxy settings accepts spaces. It should not.

      Worse, once you've set a host name with spaces in it it prevents startup of the server.

      2017-01-17 11:34:22,544-0600 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - java.lang.RuntimeException: org.sonatype.goodies.common.MultipleFailures$MultipleFailuresException: Failed to start 1 components; 1 failure
      2017-01-17 11:34:22,544-0600 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at com.google.common.base.Throwables.propagate(Throwables.java:240)
      2017-01-17 11:34:22,544-0600 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.sonatype.nexus.extender.NexusContextListener.frameworkEvent(NexusContextListener.java:195)
      2017-01-17 11:34:22,545-0600 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1429)
      2017-01-17 11:34:22,545-0600 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
      2017-01-17 11:34:22,545-0600 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at java.lang.Thread.run(Thread.java:745)
      2017-01-17 11:34:22,545-0600 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - Caused by: org.sonatype.goodies.common.MultipleFailures$MultipleFailuresException: Failed to start 1 components; 1 failure
      2017-01-17 11:34:22,545-0600 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.sonatype.goodies.common.MultipleFailures.maybePropagate(MultipleFailures.java:95)
      2017-01-17 11:34:22,545-0600 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.sonatype.goodies.lifecycle.LifecycleManager.doStart(LifecycleManager.java:109)
      2017-01-17 11:34:22,546-0600 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.sonatype.nexus.internal.repository.RepositoryLifecycle.doStart(RepositoryLifecycle.java:56)
      2017-01-17 11:34:22,546-0600 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.sonatype.goodies.lifecycle.LifecycleSupport.start(LifecycleSupport.java:104)
      2017-01-17 11:34:22,546-0600 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.sonatype.nexus.extender.NexusLifecycleManager.startComponent(NexusLifecycleManager.java:154)
      2017-01-17 11:34:22,546-0600 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.sonatype.nexus.extender.NexusLifecycleManager.to(NexusLifecycleManager.java:94)
      2017-01-17 11:34:22,546-0600 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.sonatype.nexus.extender.NexusContextListener.frameworkEvent(NexusContextListener.java:185)
      2017-01-17 11:34:22,546-0600 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - ... 3 more
      2017-01-17 11:34:22,546-0600 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - Suppressed: org.sonatype.goodies.common.MultipleFailures$MultipleFailuresException: Failed to initialize facets; 1 failure
      2017-01-17 11:34:22,547-0600 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.sonatype.goodies.common.MultipleFailures.maybePropagate(MultipleFailures.java:95)
      2017-01-17 11:34:22,547-0600 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.sonatype.nexus.repository.manager.internal.RepositoryImpl.init(RepositoryImpl.java:195)
      2017-01-17 11:34:22,547-0600 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.sonatype.nexus.common.stateguard.MethodInvocationAction.run(MethodInvocationAction.java:39)
      2017-01-17 11:34:22,547-0600 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.sonatype.nexus.common.stateguard.StateGuard$TransitionImpl.run(StateGuard.java:191)
      2017-01-17 11:34:22,547-0600 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.sonatype.nexus.common.stateguard.TransitionsInterceptor.invoke(TransitionsInterceptor.java:56)
      2017-01-17 11:34:22,547-0600 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.sonatype.nexus.repository.manager.internal.RepositoryManagerImpl.newRepository(RepositoryManagerImpl.java:157)
      2017-01-17 11:34:22,547-0600 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.sonatype.nexus.repository.manager.internal.RepositoryManagerImpl.doStart(RepositoryManagerImpl.java:218)
      2017-01-17 11:34:22,547-0600 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.sonatype.nexus.common.stateguard.StateGuardLifecycleSupport.start(StateGuardLifecycleSupport.java:67)
      2017-01-17 11:34:22,547-0600 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.sonatype.nexus.common.stateguard.MethodInvocationAction.run(MethodInvocationAction.java:39)
      2017-01-17 11:34:22,547-0600 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.sonatype.nexus.common.stateguard.StateGuard$TransitionImpl.run(StateGuard.java:191)
      2017-01-17 11:34:22,548-0600 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.sonatype.nexus.common.stateguard.TransitionsInterceptor.invoke(TransitionsInterceptor.java:56)
      2017-01-17 11:34:22,548-0600 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.sonatype.goodies.lifecycle.LifecycleManager.doStart(LifecycleManager.java:102)
      2017-01-17 11:34:22,548-0600 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - ... 8 more
      2017-01-17 11:34:22,548-0600 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - Suppressed: java.lang.IllegalArgumentException: Host name may not contain blanks
      2017-01-17 11:34:22,548-0600 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.apache.http.util.Args.containsNoBlanks(Args.java:84)
      2017-01-17 11:34:22,548-0600 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.apache.http.HttpHost.<init>(HttpHost.java:80)
      2017-01-17 11:34:22,549-0600 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.apache.http.HttpHost.<init>(HttpHost.java:99)
      2017-01-17 11:34:22,549-0600 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.sonatype.nexus.httpclient.config.ConfigurationCustomizer.apply(ConfigurationCustomizer.java:156)
      2017-01-17 11:34:22,549-0600 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.sonatype.nexus.httpclient.config.ConfigurationCustomizer.customize(ConfigurationCustomizer.java:117)
      2017-01-17 11:34:22,549-0600 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.sonatype.nexus.internal.httpclient.HttpClientManagerImpl.prepare(HttpClientManagerImpl.java:232)
      2017-01-17 11:34:22,549-0600 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.sonatype.nexus.common.stateguard.MethodInvocationAction.run(MethodInvocationAction.java:39)
      2017-01-17 11:34:22,549-0600 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.sonatype.nexus.common.stateguard.StateGuard$GuardImpl.run(StateGuard.java:270)
      2017-01-17 11:34:22,550-0600 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.sonatype.nexus.common.stateguard.GuardedInterceptor.invoke(GuardedInterceptor.java:53)
      2017-01-17 11:34:22,550-0600 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.sonatype.nexus.internal.httpclient.HttpClientManagerImpl.create(HttpClientManagerImpl.java:210)
      2017-01-17 11:34:22,550-0600 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.sonatype.nexus.common.stateguard.MethodInvocationAction.run(MethodInvocationAction.java:39)
      2017-01-17 11:34:22,550-0600 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.sonatype.nexus.common.stateguard.StateGuard$GuardImpl.run(StateGuard.java:270)
      2017-01-17 11:34:22,550-0600 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.sonatype.nexus.common.stateguard.GuardedInterceptor.invoke(GuardedInterceptor.java:53)
      2017-01-17 11:34:22,551-0600 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.sonatype.nexus.repository.httpclient.internal.HttpClientFacetImpl.createHttpClient(HttpClientFacetImpl.java:130)
      2017-01-17 11:34:22,551-0600 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.sonatype.nexus.repository.httpclient.internal.HttpClientFacetImpl.doConfigure(HttpClientFacetImpl.java:94)
      2017-01-17 11:34:22,551-0600 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.sonatype.nexus.repository.FacetSupport.doInit(FacetSupport.java:140)
      2017-01-17 11:34:22,551-0600 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.sonatype.nexus.repository.FacetSupport.init(FacetSupport.java:136)
      2017-01-17 11:34:22,551-0600 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.sonatype.nexus.common.stateguard.MethodInvocationAction.run(MethodInvocationAction.java:39)
      2017-01-17 11:34:22,551-0600 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.sonatype.nexus.common.stateguard.StateGuard$TransitionImpl.run(StateGuard.java:191)
      2017-01-17 11:34:22,552-0600 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.sonatype.nexus.common.stateguard.TransitionsInterceptor.invoke(TransitionsInterceptor.java:56)
      2017-01-17 11:34:22,552-0600 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.sonatype.nexus.repository.manager.internal.RepositoryImpl.init(RepositoryImpl.java:188)
      2017-01-17 11:34:22,552-0600 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - ... 18 more
      

        Attachments

          Activity

            People

            Assignee:
            jstephens Joseph Stephens
            Reporter:
            rseddon Rich Seddon
            Last Updated By:
            Peter Lynch
            Votes:
            1 Vote for this issue
            Watchers:
            9 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title