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

Refactoring jobs don't take into account wiki syntax in Macros

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 8.4
    • Fix Version/s: None
    • Component/s: Refactoring
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      Right now if you have some wiki links inside a {{info}} macro for example (or inside a {{html wiki=true}} macro) then they are opaque to the refactoring operations. The consequence is that you get broken links when you move pages for example since the links are not rewritten.

      2 ideas:

      • Idea 1: Have the refactoring jobs know some well-known macros and add support for them (i.e. update their content)
      • Idea 2: Introduce some new API in the Macro interface (or introduce a RefactorableMacro interface) to let the macro implement what it should do during refactoring operations (like a move/rename).

      WDYT?

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Date of First Response: