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

      Steps to reproduce:

      1. Create a page with a colon (":") in the title and attach PDF documents.
      2. Go to insert a PDF macro.

      Instead of the drop-down containing a list of PDF documents attached to the page, it will be empty.

      The AJAX call to /json/attachmentsearch.action will fail with a 404 because it is using bad spaceKey and title parameters. The colon seems to confuse whatever is trying to extract them.

            [CONFSERVER-29660] PDF macro breaks on pages with a colon in the title

            Sattesh M added a comment -

            This bug has been re-opened here,
            https://jira.atlassian.com/browse/CONFSERVER-57966

            Sattesh M added a comment - This bug has been re-opened here, https://jira.atlassian.com/browse/CONFSERVER-57966

            Is this serious? There's a clear bug here in the pdf macro if the page title has colon. I've got version 5.7.5 and yes you can use the "thumbnail" feature but it's a poor replacement of the full pdf macro. Its just a snapshot of the page and half the time it wont even render the thumb image. Additionally you get no ability to step through the pdf on the top page. You get like this (same attachment, first one thumbnail type and second pdf macro):

            Please reopen this bug...and if you're working on the pdf macro maybe make it do things that many people would expect:
            search
            jump to page #
            etc

            Matthew Page added a comment - Is this serious? There's a clear bug here in the pdf macro if the page title has colon. I've got version 5.7.5 and yes you can use the "thumbnail" feature but it's a poor replacement of the full pdf macro. Its just a snapshot of the page and half the time it wont even render the thumb image. Additionally you get no ability to step through the pdf on the top page. You get like this (same attachment, first one thumbnail type and second pdf macro): Please reopen this bug...and if you're working on the pdf macro maybe make it do things that many people would expect: search jump to page # etc

            Thank you everyone for your feedback. In a recent release of Confluence (5.7) we introduced a new way to embed, preview and collaborate on files (more information here). This new experience does not require you to insert a macro first, but automatically embeds a preview of the file if you upload it. In addition, it supports many more file types and additional features which are not available in the View File macro. All future efforts on improving our files experience will be on the new solution.

            This bug does not exist in our new file experience and we encourage you to transition your embedded view file macro into an embedded file to make use of the new file functionality. Given that the bug does not occur in the new file experience, we will be closing this issue.

            Denise Unterwurzacher [Atlassian] (Inactive) added a comment - Thank you everyone for your feedback. In a recent release of Confluence (5.7) we introduced a new way to embed, preview and collaborate on files (more information here ). This new experience does not require you to insert a macro first, but automatically embeds a preview of the file if you upload it. In addition, it supports many more file types and additional features which are not available in the View File macro. All future efforts on improving our files experience will be on the new solution. This bug does not exist in our new file experience and we encourage you to transition your embedded view file macro into an embedded file to make use of the new file functionality. Given that the bug does not occur in the new file experience, we will be closing this issue.

            The issue is still present with Conf. 5.7

            Workaround

            Remove temporarily your colon from your page title, insert your PDF macro (and your attachment), reintroduce your colon and save your page. It worked for us.

            Nicolas Casanova added a comment - The issue is still present with Conf. 5.7 Workaround Remove temporarily your colon from your page title, insert your PDF macro (and your attachment), reintroduce your colon and save your page. It worked for us.

            Doug added a comment -

            Confirmed this problem still exists in Confluence 5.6.4 and EAP 5.7-m15.

            Doug added a comment - Confirmed this problem still exists in Confluence 5.6.4 and EAP 5.7-m15.

            I can confirm this is still happening in 5.5.3 despite CONF-24785 being resolved.

            David Harper added a comment - I can confirm this is still happening in 5.5.3 despite CONF-24785 being resolved.

            Linked to CONF-24785, as it is the bigger issue responsible for failures of special characters in macros.

            Renan Battaglin added a comment - Linked to CONF-24785 , as it is the bigger issue responsible for failures of special characters in macros.

            Confirmed that this still happened in 5.1-OD-9.

            Michael Knight added a comment - Confirmed that this still happened in 5.1-OD-9.

              Unassigned Unassigned
              mknight@atlassian.com Michael Knight
              Affected customers:
              10 This affects my team
              Watchers:
              14 Start watching this issue

                Created:
                Updated:
                Resolved: