The ndash character used for an attachment name it is not properly encoded when exporting and import spaces.

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Low
    • None
    • Affects Version/s: 6.15.3
    • Component/s: Macros - Multimedia
    • None
    • 4
    • Severity 3 - Minor
    • 1

      Issue reported:

      The ndash character used for an attachment name it is not properly encoded when exporting and import spaces.

      Reproducible steps:

      1. Take a pdf attachment and rename it to “test – 1.pdf”, or any other file name, the name has to contain “–”.
      2. Upload “test – 1.pdf” file on Confluence page as attachment
      3. Add this “test – 1.pdf” on page using PDF macro.
      4. Export the space
      5. Import the space

      Expected Results:

      The pdf is properly displayed

      Current Results:

      An error is thrown:

      Error rendering macro ‘viewpdf’
      The viewfile macro is unable to locate the attachment “test - 1.pdf” on this page

      If we view the attachment after an import the url will be:
      http://url/pages/worddav/preview.action?fileName=test+-+1.pdf&pageId=1234667

      Whereas the Storage macro is:

      <p><ac:structured-macro ac:name=“view-file” ac:schema-version=“1” ac:macro-id=“eaacb52e-73ec-467d-a333-f206f33d444b”><ac:parameter ac:name=“name”><ri:attachment ri:filename=“test &ndash; 1.pdf” /></ac:parameter><ac:parameter ac:name=“height”>250</ac:parameter></ac:structured-macro>&nbsp;<ac:structured-macro ac:name=“viewpdf” ac:schema-version=“1” ac:macro-id=“e9f2572d-9951-4148-9449-d934c343ee02"><ac:parameter ac:name=“name”><ri:attachment ri:filename=“test &ndash; 1.pdf” /></ac:parameter></ac:structured-macro></p>
      

      Workaround

      Update the Storage format and replace the ndash character with a dash

      or

      Edit the page and select the attachment again on the pdf macro.

            Assignee:
            Unassigned
            Reporter:
            Claudiu Lionte (Inactive)
            Votes:
            4 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: