Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-30579

Referencing an attachment from a page with a slash in its title causes the viewfile macro to fail

XMLWordPrintable

      I've attached an XML backup which demonstrates the problem.

      Steps to Reproduce:

      1. Create a page with a slash in the title
      2. Attach a file to this page, such as a PDF
      3. Create a child page, and attempt to embed the attachment from the parent page with the viewfile macro

      Results:
      Instead of rendering the PDF, Confluence displays:

      Error rendering macro 'viewppt' : The viewfile macro is unable to locate the attachment "Test.ppt" on this page

      The Page Name field of the viewfile macro also displays:
      / test///
      Instead of:
      pdf / test

      Here's a screenshot from a customer effected by this explaining the problem:

        1. viewppt-error-symptom.jpg
          viewppt-error-symptom.jpg
          202 kB
        2. TES-130709-4.xml.zip
          154 kB

              Unassigned Unassigned
              ldally lachland
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: