Multiple AttachmentData objects were returned when only one was expected

XMLWordPrintable

    • 17

      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"

            Assignee:
            Don Willis
            Reporter:
            Ivan Benko [Atlassian]
            Votes:
            12 Vote for this issue
            Watchers:
            32 Start watching this issue

              Created:
              Updated:
              Resolved: