Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-10162

[SearchPagesService] Insert a service parameter after a non existing one leads to an UndefinedItemPathException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 4.2.9, 4.3.0
    • 4.2.8, 4.3.0
    • None
    • None
    • 4.3 M6

      Example in project :

      ametys-cms-4.2.8.jar
      ametys-plugin-odf-web-4.1.8.jar
      ametys-plugin-workspaces-1.4.5.jar

      the plugin ODF-Web defines a search service without search-multisite parameter, but the plugin workspaces tries to insert a parameter after the search-multisite parameter.. => KO

      	... 116 more
      Caused by: java.lang.Exception: Caught an exception trying to initialize the component org.ametys.odf.service.SearchCourseService
      	at org.ametys.runtime.plugin.component.ThreadSafeComponentManager.initialize(ThreadSafeComponentManager.java:212)
      	at org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint.initializeExtensions(AbstractThreadSafeComponentExtensionPoint.java:96)
      	at org.ametys.runtime.plugin.component.PluginsComponentManager$ExtensionPointFactory.newInstance(PluginsComponentManager.java:219)
      	at org.ametys.runtime.plugin.component.PluginsComponentManager$ExtensionPointFactory.newInstance(PluginsComponentManager.java:186)
      	at org.ametys.runtime.plugin.component.ThreadSafeComponentManager.lookup(ThreadSafeComponentManager.java:138)
      	... 118 more
      Caused by: org.ametys.runtime.model.exception.UndefinedItemPathException: The item at path 'search-multisite' is not defined in the model item container 'org.ametys.web.frontoffice.SearchPagesService@7066aaed'.
      	at org.ametys.runtime.model.ModelItemContainer.getModelItem(ModelItemContainer.java:67)
      	at org.ametys.web.frontoffice.SearchPagesService._hasParentModelGroup(SearchPagesService.java:102)
      	at org.ametys.web.frontoffice.SearchPagesService.configureParameters(SearchPagesService.java:86)
      	at org.ametys.web.service.StaticService.configure(StaticService.java:182)
      	at org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:202)
      	at org.ametys.runtime.plugin.component.ThreadSafeComponentManager$ComponentFactory.configureAndStart(ThreadSafeComponentManager.java:359)
      	at org.ametys.runtime.plugin.component.ThreadSafeComponentManager$ComponentFactory.newInstance(ThreadSafeComponentManager.java:378)
      	at org.ametys.r
      

            cbayle Caroline Bayle
            lperier Laurence Perier
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: