-
Bug
-
Resolution: Tracked Elsewhere
-
High
-
None
-
2.6.0, 5.3-OD-11, 5.5-OD-28
-
None
-
33
-
NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.
The following errors can occur in the logs after two threads attempt to access and then successfully create a single User's User Info (aka userinfo, PersonalInformation, personal information)
2007-10-28 02:15:29,871 ERROR [TP-Processor3] [com.atlassian.hibernate.HibernateObjectDao] findSingleObject Uh oh - found more than one object when single object requested: [userinfo: testuser1 v.1 (15763661), userinfo: testuser1 v.1 (15763669)]
The HibernatePersonalInformationDao has a getByUsername method that calls the findSingleObject method which selects the single PersonalInformation object
from Content info
where info.originalVersion is null and
info.username = ?
Unfortunately, there is little enforcement that there is only one PersonalInformation for each user with a null version. There is only high level code that checks the Object can't be fetched from the database before creating the object and sending it to the persistence layer. It's not even synchronized, so this bug isn't confined to clustered instances.
It's occurrence is still quite improbable. It does require two separate threads to require the user's PersonalInformation at approximately the same time, but it can and does happen and it should be stopped. The obvious solution is to add a uniquenesss constraint to the PersonalInformation subclass definition in ContentEntityObject.hbm.xml on the (Username, Version) attribute pair. Note that the username is only used for PersonalInformation objects.
- is blocked by
-
CONFSERVER-18970 findSingleObject Uh oh - found more than one object when single object requested: [Attachment:***]
- Closed
- is duplicated by
-
CONFSERVER-30050 Users are duplicated in the People Directory, shares, mentions, and have two USERINFO records in the database
- Closed
-
CONFSERVER-16732 Duplicate user information objects created
- Closed
-
CONFSERVER-35812 Unable to choose user from mention in confluence
- Closed
- is incorporated by
-
CONFSERVER-30050 Users are duplicated in the People Directory, shares, mentions, and have two USERINFO records in the database
- Closed
- is related to
-
CONFSERVER-13480 "Uh oh" HibernateObjectDao errors
- Closed
-
CONFSERVER-14040 FindSingleObject Uh oh - found more than one object when single object requested - globaldescription
- Closed
-
CONFSERVER-29072 Users are duplicated in People Directory each time Confluence restarts
- Closed
-
CONFSERVER-33543 Filter out duplicates in people directory
- Closed
- relates to
-
CONFCLOUD-9857 PersonalInformation (userinfo) fetching assumes a uniqueness constraint that isn't enforced
- Closed
- mentioned in
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...