Sometimes, we get the wrong thing back from HibernatePageDao.getPageById()

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Medium
    • 1.3
    • Affects Version/s: 1.2.3
    • Component/s: None

      Example:

      java.lang.ClassCastException: com.atlassian.confluence.pages.AbstractPage$$EnhancerByCGLIB$$2fd0abb4
      at com.atlassian.confluence.pages.persistence.dao.hibernate.HibernatePageDao.getPageById(HibernatePageDao.java:38)
      at com.atlassian.confluence.pages.persistence.dao.hibernate.HibernatePageDao.getPage(HibernatePageDao.java:55)
      at com.atlassian.confluence.pages.DefaultPageManager.getPage(DefaultPageManager.java:51)

      Change the DAO so that getPageById only looks for pages, not for AbstractPages.

              Assignee:
              Charles Miller (Inactive)
              Reporter:
              Charles Miller (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: