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

Allow old plugins installed as extensions to be loaded without listing them in xwiki.cfg

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 17.10.0
    • Old Core
    • None
    • Unknown

    Description

      Right now, an old plugin installed as an extension is only loaded if it's listed in the static xwiki.plugins property of xwiki.cfg, and plugins are only loaded at startup. This makes it hard to move plugins out of XWiki Standard: an admin who still needs a removed plugin has to install it and also edit xwiki.cfg and restart.

      The idea is to introduce a component entry point allowing an extension to declare a plugin that the plugin manager finds even when it's not listed in xwiki.cfg, with the plugin manager reacting to the registration/unregistration of these components to update its list of plugins.

      Conclusions of the discussion:

      • No configuration to disable such dynamically registered plugins: an admin who doesn't want one can uninstall it.
      • The new entry point and the code reacting to its registration events are kept separate from the rest of oldcore, so that they can move to legacy together with the plugin manager later.

      See https://forum.xwiki.org/t/19063.

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              tmortagne Thomas Mortagne
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: