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

HibernateObjectDao.getByClassId() prone to ClassCastExceptions

    XMLWordPrintable

Details

    Description

      The com.atlassian.hibernate.HibernateObjectDao#getByClassId method calls session#get(getPersistentClass(), id).
      This is prone to the same sort of ClassCastException as CONF-17657 when accidentally called with an id that actually belongs to a sibling class. This wouldn't be the case if we upgraded to the latest version of hibernate 3, which does not suffer from https://hibernate.onjira.com/browse/HHH-1460

      Attachments

        Issue Links

          Activity

            People

              shaffenden Steve Haffenden (Inactive)
              don.willis@atlassian.com Don Willis
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: