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

Viewfile macro intermittently failed to render a PDF/PPT file in a page

      Steps to reproduce:
      1. Attach some PPT and PDF files to a Confluence page
      2. Embed then into the page using viewfile macro
      3. Result: All of the files were rendered just fine
      4. BUT randomly and intermittently, when you revisit the same page again, one of the viewfile macro from all of the viewfile macros will not be rendered - at times only certain page in the PDF is rendered although all of the pages can be rendered just fine previously. The same scenario could happened to the PPT file too. You'll see this kind of error in the logs:
        WARN [http-8534-4] [com.benryan.conversion.PPTSlideServlet] doGet Conversion task timed out for attachment : PK Presentation 2013-11-20.ppt with page number 3, waited : 300, now executing in background.
        

      Refreshing the page (at times this has to be done twice) helps to render the affected PDF/PPT file once more. Viewing the individual PDF/PPT using viewfile macro in an individual page do not have the same problem.

      Workaround 1 - new File Viewer

      Use the new File Viewer to embed the document in the page.

      Workaround 2 - generate the slides again

      To force Confluence generate the slide images again:

      1. Get the attachment ID for the attachment with the problem. To do so, please run the following SQL query in your Confluence database:
        select attachmentid from attachments where prevver is null and title = 'filename.ext';

        Please replace filename.ext with the filename with the problem.

      2. Go to the folder <CONFLUENCE_DATA>/viewfile/.
      3. Remove all files containing the attachment id from step #1. Filenames will look like slide-1234-1 where 1234 is the attachment id.
      4. Go to the page containing the attachment embedded in it. This should recreate the images for the slides.

            [CONFSERVER-32515] Viewfile macro intermittently failed to render a PDF/PPT file in a page

            Conny Postma made changes -
            Remote Link Original: This issue links to "Page (Atlassian Documentation)" [ 145513 ]
            Katherine Yabut made changes -
            Workflow Original: JAC Bug Workflow v3 [ 2898592 ] New: CONFSERVER Bug Workflow v4 [ 2993198 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2791046 ] New: JAC Bug Workflow v3 [ 2898592 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow [ 2725766 ] New: JAC Bug Workflow v2 [ 2791046 ]
            Owen made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2389603 ] New: JAC Bug Workflow [ 2725766 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 2267660 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2389603 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2210871 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 2267660 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2197904 ] New: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2210871 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 1923393 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2197904 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v3 [ 1726039 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 1923393 ]

              Unassigned Unassigned
              hsuhailah Hanis Suhailah (Inactive)
              Affected customers:
              60 This affects my team
              Watchers:
              59 Start watching this issue

                Created:
                Updated:
                Resolved: