Uploaded image for project: 'MediaWiki tools'
  1. MediaWiki tools
  2. MEDIAWIKI-99

Plus sign in Mediawiki links is converted to underscore

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 1.12.4
    • 1.12.3
    • Filter
    • None
    • MediaWiki 1.31.7 / XWiki 12.4
    • Easy
    • Pull Request accepted

    Description

      Use Case: using the MediaWiki XML Input stream and the xwiki+instance output stream to import MediaWiki pages into XWiki via the Filter Application.

      If a page contains a {} sign, then in links to this page the {} is converted to an _ . The page itself is created in XWiki with the plus in place.

      E.g. a MediaWiki link

      [[Page A+B]]
      {{code}}
      
      is converter to an XWiki link:
      
      

      [[MW-Import.Page_A_B.WebHome]]

      
      while the page is actually stored at {{MW-Import.Page_A+B.WebHome}}
      
      Also MediaWiki is quite tolerant whn it comes to whitespace in a link. E.g.:
      
      

      [[Page __ __ Page]]

      
      

      is a valid link to the page Page_Page. This gets imported as a link to Page__________Page into XWiki, however.

      Ok, I am mixing two things up here, but I discovered both at nearly the same time in the same migration, so I am going to provide a simple for both.

      Attachments

        Activity

          People

            camil7 Clemens Robbenhaar
            camil7 Clemens Robbenhaar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: