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

Viewfile macro can't find attachment if the page title contain character after colon (:)

XMLWordPrintable

      NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.

      Summary of The Bug

      When page title have any character after a colon( : )

      Office Connector:test
      

      office connector can't find the office files attached to the page. If colon is the last character on the page title, attached office files searchable by view office macro.

      This bug also affects the multimedia macros (adding audio / video files).

      How to reproduce the bug

      1. Create a page (example: 'Office connector:')
      2. Attached office file into the page
      3. Try to view it using view office plugin
      4. Change the page title to contain any character after colon (example: 'Office connector:test')
      5. Try to view it using view office plugin
      6. Attached files can't be seen on "File Name" fields
        When viewed with Developer Tools, the attachmentsearch.action GET request returned HTTP 404 error code.

      Workarounds

      Option 1 - Rename the page to remove the ':'

      Option 2 - Use the insert markup feature:

      1. From the editor toolbar, expand the '+' menu.
      2. Choose 'Markup'.
      3. Insert the following markup (change accordingly):
        {viewfile:name_of_the_attachments.ext}
        
      1. Save

      Work performed

      • Changes are backwards-compatible in the plugin, committed in https://bitbucket.org/atlassian/officeconnector issue/CONF-24540 . 2 backwards-compatibility issues were raised: CONFDEV-10156 and CONFDEV-10157.
      • Changes in confluence-core are still on issue/CONF-24540, and awaiting implementation of a few review comments before being committed.

        1. attached.png
          12 kB
          Septa Cahyadiputra
        2. broke.png
          56 kB
          Septa Cahyadiputra
        3. Officepage.png
          15 kB
          Septa Cahyadiputra
        4. screenshot-1.png
          19 kB
          David Puchosic
        5. test.png
          15 kB
          Septa Cahyadiputra
        6. Works.png
          57 kB
          Septa Cahyadiputra

              Unassigned Unassigned
              scahyadiputra Septa Cahyadiputra (Inactive)
              Votes:
              102 Vote for this issue
              Watchers:
              101 Start watching this issue

                Created:
                Updated: