Details

    • Type: Regression Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 6.2.X EE
    • Fix Version/s: 6.2.X EE
    • Component/s: vLDAP
    • Labels:
      None

      Description

      Steps to Reproduce

      1. Start up a clean portal.
      2. Deploy vLDAP without creating a "mykeystore.cer" file.

      Actual Result: If the user does not have a keystore specified, vLDAP will fail to deploy properly. The following errors displayed in the run console:

      05:40:20,214 ERROR [localhost-startStop-3][LdapSslContextFactory:48] java.io.IOException: mykeystore.cer does not exist
      java.io.IOException: mykeystore.cer does not exist
      	at com.liferay.vldap.server.handler.util.LdapSslContextFactory._createServerSSLContext(LdapSslContextFactory.java:70)
      	at com.liferay.vldap.server.handler.util.LdapSslContextFactory.<init>(LdapSslContextFactory.java:45)
      	at com.liferay.vldap.server.handler.util.LdapSslContextFactory.<clinit>(LdapSslContextFactory.java:127)
      	at com.liferay.vldap.server.VLDAPServer.initSslFilter(VLDAPServer.java:136)
      	at com.liferay.vldap.server.VLDAPServer.initIoAcceptor(VLDAPServer.java:105)
      	at com.liferay.vldap.server.VLDAPServer.init(VLDAPServer.java:64)
      	at com.liferay.vldap.servlet.VLDAPContextListener.doPortalInit(VLDAPContextListener.java:49)
      	at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:44)
      	at com.liferay.portal.kernel.deploy.hot.HotDeployEvent.flushInits(HotDeployEvent.java:66)
      	at com.liferay.portal.deploy.hot.HotDeployImpl.doFireDeployEvent(HotDeployImpl.java:260)
      	at com.liferay.portal.deploy.hot.HotDeployImpl.fireDeployEvent(HotDeployImpl.java:96)
      	at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:28)
      	at com.liferay.portal.kernel.servlet.PluginContextListener.fireDeployEvent(PluginContextListener.java:164)
      	at com.liferay.portal.kernel.servlet.PluginContextListener.doPortalInit(PluginContextListener.java:154)
      	at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:44)
      	at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:74)
      	at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:58)
      	at com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:54)
      	at com.liferay.portal.kernel.servlet.PluginContextListener.contextInitialized(PluginContextListener.java:116)
      	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5016)
      	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5528)
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
      	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
      	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
      	at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1263)
      	at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1948)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      05:40:20,223 ERROR [localhost-startStop-3][BasePortalLifecycle:47] java.lang.IllegalArgumentException: sslContext
      java.lang.IllegalArgumentException: sslContext
      	at org.apache.mina.filter.ssl.SslFilter.<init>(SslFilter.java:188)
      	at org.apache.mina.filter.ssl.SslFilter.<init>(SslFilter.java:178)
      	at com.liferay.vldap.server.VLDAPServer.initSslFilter(VLDAPServer.java:138)
      	at com.liferay.vldap.server.VLDAPServer.initIoAcceptor(VLDAPServer.java:105)
      	at com.liferay.vldap.server.VLDAPServer.init(VLDAPServer.java:64)
      	at com.liferay.vldap.servlet.VLDAPContextListener.doPortalInit(VLDAPContextListener.java:49)
      	at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:44)
      	at com.liferay.portal.kernel.deploy.hot.HotDeployEvent.flushInits(HotDeployEvent.java:66)
      	at com.liferay.portal.deploy.hot.HotDeployImpl.doFireDeployEvent(HotDeployImpl.java:260)
      	at com.liferay.portal.deploy.hot.HotDeployImpl.fireDeployEvent(HotDeployImpl.java:96)
      	at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:28)
      	at com.liferay.portal.kernel.servlet.PluginContextListener.fireDeployEvent(PluginContextListener.java:164)
      	at com.liferay.portal.kernel.servlet.PluginContextListener.doPortalInit(PluginContextListener.java:154)
      	at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:44)
      	at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:74)
      	at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:58)
      	at com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:54)
      	at com.liferay.portal.kernel.servlet.PluginContextListener.contextInitialized(PluginContextListener.java:116)
      	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5016)
      	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5528)
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
      	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
      	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
      	at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1263)
      	at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1948)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      05:40:20,258 ERROR [localhost-startStop-3][BasePortalLifecycle:47] java.lang.IllegalStateException: Unable to initialize portal
      java.lang.IllegalStateException: Unable to initialize portal
      	at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:49)
      	at com.liferay.portal.kernel.deploy.hot.HotDeployEvent.flushInits(HotDeployEvent.java:66)
      	at com.liferay.portal.deploy.hot.HotDeployImpl.doFireDeployEvent(HotDeployImpl.java:260)
      	at com.liferay.portal.deploy.hot.HotDeployImpl.fireDeployEvent(HotDeployImpl.java:96)
      	at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:28)
      	at com.liferay.portal.kernel.servlet.PluginContextListener.fireDeployEvent(PluginContextListener.java:164)
      	at com.liferay.portal.kernel.servlet.PluginContextListener.doPortalInit(PluginContextListener.java:154)
      	at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:44)
      	at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:74)
      	at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:58)
      	at com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:54)
      	at com.liferay.portal.kernel.servlet.PluginContextListener.contextInitialized(PluginContextListener.java:116)
      	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5016)
      	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5528)
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
      	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
      	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
      	at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1263)
      	at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1948)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.IllegalArgumentException: sslContext
      	at org.apache.mina.filter.ssl.SslFilter.<init>(SslFilter.java:188)
      	at org.apache.mina.filter.ssl.SslFilter.<init>(SslFilter.java:178)
      	at com.liferay.vldap.server.VLDAPServer.initSslFilter(VLDAPServer.java:138)
      	at com.liferay.vldap.server.VLDAPServer.initIoAcceptor(VLDAPServer.java:105)
      	at com.liferay.vldap.server.VLDAPServer.init(VLDAPServer.java:64)
      	at com.liferay.vldap.servlet.VLDAPContextListener.doPortalInit(VLDAPContextListener.java:49)
      	at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:44)
      	... 24 more
      

      Expected Result: By default, only the non-secure port should be opened and then the user can configure it as necessary.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                joyce.wang Joyce Wang
                Reporter:
                joyce.wang Joyce Wang
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  2 years, 40 weeks, 4 days ago

                  Packages

                  Version Package
                  6.2.X EE