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

Details

    Description

      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.

      Attachments

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

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: