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

System Error on pdf page export link from REST API

    XMLWordPrintable

Details

    Description

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

      Steps to reproduce:
      1. Request a comment content object through the REST API.
      2. Follow the link to convert to pdf (../spaces/flyingpdf/pdfpageexport.action?pageId=123456)

      Following the convert to pdf link from a comment content object gets an error. The page with the full stack trace is attached.
      The error is caused by:

      java.lang.ClassCastException: com.atlassian.confluence.pages.Comment cannot be cast to com.atlassian.confluence.pages.AbstractPage
      at com.atlassian.confluence.pages.persistence.dao.hibernate.HibernateAbstractPageDao.getAbstractPageById(HibernateAbstractPageDao.java:17)

      Attachments

        Issue Links

          Activity

            People

              drizzuto David Rizzuto
              jordan.drake Jordan Drake
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: