Uploaded image for project: 'Runtime'
  1. Runtime
  2. RUNTIME-2997

Unable to load Front with an LDAP population, as parameters are treated as string when they should not

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 4.2.0
    • 4.2.0
    • None
    • None
    • 4.2 M7

      Unable to load the parameters of an LDAP population, preventing the front to load :

      org.ametys.plugins.site.SiteInformationCache._addBackofficeLDAPDatasources:384 loads the paramaters as String, and org.ametys.core.util.ldap.AbstractLDAPConnector._delayedInitialize:102 expect typed parameters (boolean, in this case)

       

      Caused by: java.lang.RuntimeException: Unable to synchronize sites data
      at org.ametys.plugins.site.SiteInformationCache._synchronize(SiteInformationCache.java:123)
      at org.ametys.plugins.site.SiteInformationCache.getSites(SiteInformationCache.java:106)
      at org.ametys.site.GetSiteAction.act(GetSiteAction.java:72)
      at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:120)
      at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
      at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
      at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
      at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
      at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
      at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
      at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:236)
      at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:178)
      at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254)
      at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118)
      ... 32 more
      Caused by: java.lang.IllegalStateException: An error occured during the initialization of the UserDirectory 'org.ametys.plugins.core.user.directory.Ldap' of the UserPopulation 'cas'
      at org.ametys.core.user.directory.UserDirectoryFactory.createUserDirectory(UserDirectoryFactory.java:143)
      at org.ametys.core.user.population.UserPopulationDAO._fillUserPopulation(UserPopulationDAO.java:705)
      at org.ametys.core.user.population.UserPopulationDAO.add(UserPopulationDAO.java:601)
      at org.ametys.plugins.site.SiteInformationCache._addBackOfficeUserPopulations(SiteInformationCache.java:476)
      at org.ametys.plugins.site.SiteInformationCache._addBackOfficeSynchronizedElements(SiteInformationCache.java:324)
      at org.ametys.plugins.site.SiteInformationCache._synchronizePopulationsAndDatasources(SiteInformationCache.java:266)
      at org.ametys.plugins.site.SiteInformationCache._synchronize(SiteInformationCache.java:119)
      ... 45 more
      Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
      at org.ametys.core.util.ldap.AbstractLDAPConnector._delayedInitialize(AbstractLDAPConnector.java:102)
      at org.ametys.plugins.core.impl.user.directory.LdapUserDirectory.init(LdapUserDirectory.java:146)
      at org.ametys.core.user.directory.UserDirectoryFactory.createUserDirectory(UserDirectoryFactory.java:139)
      ... 51 more

            raphael Raphaël Franchet
            glefebvre Grégory Lefebvre (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: