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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.9, 10.8.2
    • Fix Version/s: 10.11.2, 11.0
    • Component/s: Office
    • Labels:
      None
    • Tests:
      Integration
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Pull Request Status:
      Pull Request accepted
    • Similar issues:

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: