Uploaded image for project: 'Confluence Server and Data Center'
  1. Confluence Server and 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

      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):
        {view file:name_of_the_attachments.ext}
        
      4. 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.
      Atlassian Update - January 2018

      Thanks for your interest in this issue.

      We have made multiple attempts to address this issue, however as a colon is validly used to signify a spaceKey:title reference it is near impossible to implement a solution which caters for all cases.

      We have moved this issue to high priority due to the ongoing interest in having this issue fixed, however we cannot commit a timeframe due to the complexity described above.

      Cheers,

      Adam - Confluence Product Management

        Attachments

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

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              scahyadiputra Septa Cahyadiputra (Inactive)
              Votes:
              74 Vote for this issue
              Watchers:
              75 Start watching this issue

                Dates

                Created:
                Updated: