Uploaded image for project: 'LDAP Connector'
  1. LDAP Connector
  2. MGNLLDAP-86

Magnolia Install or Upgrade throws Exception if LDAPUserManager is registered

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 1.9
    • 1.6.3
    • None
    • Yes
    • Kromeriz 105, Kromeriz 106
    • 2

    Description

      Installation of magnolia 5.3.4 throws the following exception when LDAPUserManager is registred.

      1) Module instance for module [ldap] not available, most likely because the module has not yet been started. Inject a Provider<> instead to get access to the module instance when it's available.
      at info.magnolia.objectfactory.guice.GuiceComponentConfigurationModule.bindProvider(GuiceComponentConfigurationModule.java:161)
      while locating info.magnolia.jaas.sp.ldap.LDAPModule

      1 error
      com.google.inject.ProvisionException: Guice provision errors:

      1) Module instance for module [ldap] not available, most likely because the module has not yet been started. Inject a Provider<> instead to get access to the module instance when it's available.
      at info.magnolia.objectfactory.guice.GuiceComponentConfigurationModule.bindProvider(GuiceComponentConfigurationModule.java:161)
      while locating info.magnolia.jaas.sp.ldap.LDAPModule

      1 error
      at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:987)
      at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1013)
      at info.magnolia.objectfactory.guice.GuiceComponentProvider.getComponent(GuiceComponentProvider.java:102)
      at info.magnolia.objectfactory.Components.getComponent(Components.java:96)
      at info.magnolia.jaas.sp.ldap.LDAPUtils.isAllowPartialResults(LDAPUtils.java:86)
      at info.magnolia.jaas.sp.ldap.LDAPUserManager.getUser(LDAPUserManager.java:75)
      at info.magnolia.cms.security.DelegatingUserManager$5.delegate(DelegatingUserManager.java:112)
      at info.magnolia.cms.security.DelegatingUserManager$5.delegate(DelegatingUserManager.java:109)
      at info.magnolia.cms.security.DelegatingUserManager.delegateUntilSupportedAndNotNull(DelegatingUserManager.java:190)
      at info.magnolia.cms.security.DelegatingUserManager.getUser(DelegatingUserManager.java:109)
      at info.magnolia.module.delta.AddRoleToUserTask.execute(AddRoleToUserTask.java:57)
      at info.magnolia.module.delta.ConditionalDelegateTask.execute(ConditionalDelegateTask.java:61)
      at info.magnolia.module.ModuleManagerImpl.applyDeltas(ModuleManagerImpl.java:514)
      at info.magnolia.module.ModuleManagerImpl.installOrUpdateModule(ModuleManagerImpl.java:496)
      at info.magnolia.module.ModuleManagerImpl$1.doExec(ModuleManagerImpl.java:274)
      at info.magnolia.context.MgnlContext$VoidOp.exec(MgnlContext.java:414)
      at info.magnolia.context.MgnlContext$VoidOp.exec(MgnlContext.java:411)
      at info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.java:385)
      at info.magnolia.module.ModuleManagerImpl.performInstallOrUpdate(ModuleManagerImpl.java:268)
      at info.magnolia.module.ui.ModuleManagerWebUI$2.run(ModuleManagerWebUI.java:124)
      at java.lang.Thread.run(Thread.java:745)

      LDAPUtils tries to resolve the LDAPModule. But the LDAPModule is not available at this time. There is a null check in LDAPUtils but the Provider throws an exception if the module could be resolved. IMHO the result could never be null.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              mdivilek Milan Divilek
              mbuettner Marcus Büttner
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD