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

    XMLWordPrintable

Details

    • Unit
    • Unknown
    • N/A
    • N/A
    • Pull Request accepted

    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

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

              Dates

                Created:
                Updated:
                Resolved: