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

Multiple AttachmentData objects were returned when only one was expected

XMLWordPrintable

      See https://support.atlassian.com/browse/CSP-7087 for more details and a stack trace.

      I was not able to reproduce it by 'clicking the upload button twice' . Yet somehow there are multiple copies of AttachmentData.
      (reviewed by Sam)

      excerpt from the HibernateAttachmentDataDao.java l.65
      // TODO find a more appropriate exception
      if (dataObjects.size() > 1)
      throw new RuntimeException("Multiple AttachmentData objects were returned when only one was expected");

      Question remains - how possible multiple objects were created in the DB initially? Please investigate...

      The logs for this will say: "findSingleObject Uh oh - found more than one object when single object requested"

            don.willis@atlassian.com Don Willis
            ivan@atlassian.com Ivan Benko [Atlassian]
            Votes:
            12 Vote for this issue
            Watchers:
            33 Start watching this issue

              Created:
              Updated:
              Resolved: