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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 9.11.4
    • Fix Version/s: 10.3
    • Component/s: Old Core
    • Labels:
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: