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

AbstractWikiReferenceExtractor fails to extract a wiki reference if the XWiki Context isn't correctly initialized

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 9.10.1
    • Fix Version/s: None
    • Labels:
      None
    • Difficulty:
      Unknown
    • Pull Request Status:
      Awaiting Committer feedback
    • Similar issues:

      Description

      Currently, AbstractWikiReferenceExtractor is supposed to check if the
      Execution context is properly set up before resolving a given alias or wikiId (see the code).

      However, even when Execution#getContext() does not return an empty context, it is possible that no XWikiContext is initialized at the time.

      A solution for that would be to check if the "xwikicontext" key is present in the current execution context before going on.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                caubin Clément Aubin
                Reporter:
                caubin Clément Aubin
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: