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

Wrong action in XWikiContext for extensions contributing a new entity action URL handler

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 10.3
    • 9.11.4
    • Old Core
    • Unknown
    • N/A
    • N/A

    Description

      If an extension implements ResourceReferenceHandler<EntityResourceAction> then its action is not correctly set in the XWikiContext.

      The reason is that because the action is set early in XWikiRequestProcessor#processPath() and before any XWikiContext is created and thus the DefaultEntityResourceActionLister which uses the ContextComponentManagerProvider fails to find the contributed component (since the context is null it looks only in the root CM).

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: