Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-18563

ComponentDescriptorAddedEvent events are not sent for core components

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 12.10
    • Containers
    • None
    • Unknown

    Description

      This is because, in XWikiServletContextListener, we call

      ecm.initialize(this.getClass().getClassLoader());

      which registers all the components found in components.txt but at this time, there's no ComponentEventManager set in the Component Manager and thus no event is sent for them.

      The solution should be to set the StackingComponentEventManager in the ComponentManager before ecm.initialize() is called.

      Attachments

        Activity

          People

            vmassol Vincent Massol
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: