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

Importing office documents with special chars in file name breaks embedded images

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 10.11.2, 11.0
    • 10.9, 10.8.2
    • Office
    • None
    • Integration
    • Unknown
    • N/A
    • N/A
    • Pull Request accepted

    Description

      Importing office documents with special chars in file name breaks embedded images.

      For example, I am creating a new page and importing an office document called "L3 Script - Local & Domain Admin Password Change Process.docx"

      When the page is imported, images within the doc are created attached to the page based the file name:

      L3 Script - Local & Domain Admin Password Change Process_html_<random>.png

      However, in the wiki syntax of the page the "&" in the image link is encoded so the image is broken within the page:

      [[image:L3 Script - Local &a mp; Domain Admin Password Change Process_html_m26c93286.png||alt="L3 Script - Local & Domain Admin Password Change Process_html_m26c93286.png" height="146" width="290"]]

      Note the "&a mp;" (I put a space since it gets converted here..)

      Manually editing the link and re-specifying the attachment resolves the issue, but on large documents with many images this is cumbersome.

      Attachments

        Issue Links

          Activity

            People

              surli Simon Urli
              reighnman Jared O.
              Votes:
              4 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: