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

Multiple AttachmentData objects were returned when only one was expected

      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"

            [CONFSERVER-7882] Multiple AttachmentData objects were returned when only one was expected

            Renata Dornelas made changes -
            Remote Link Original: This issue links to "Page (Atlassian Documentation)" [ 162254 ]
            Katherine Yabut made changes -
            Workflow Original: JAC Bug Workflow v3 [ 2898715 ] New: CONFSERVER Bug Workflow v4 [ 2992595 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2799338 ] New: JAC Bug Workflow v3 [ 2898715 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow [ 2729849 ] New: JAC Bug Workflow v2 [ 2799338 ]
            Owen made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2395093 ] New: JAC Bug Workflow [ 2729849 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 2290845 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2395093 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2228794 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 2290845 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2185186 ] New: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2228794 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 1928414 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2185186 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v3 [ 1738272 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 1928414 ]

              don.willis@atlassian.com Don Willis
              ivan@atlassian.com Ivan Benko [Atlassian]
              Affected customers:
              12 This affects my team
              Watchers:
              33 Start watching this issue

                Created:
                Updated:
                Resolved: