-
Bug
-
Resolution: Duplicate
-
Low
-
None
-
3.0.1
-
JIRA Studio
While using a debugger in Confluence (the use of the debugger is probably what exposed an unlikely race condition), I found that DefaultPersonalInformationManager.getOrCreatePersonalInformation() is not atomic as its comment claims, probably because there's no synchronisation on it. The result was two user information objects created, with the user appearing twice in the people directory and the following error in the logs:
2009-08-27 15:04:24,630 ERROR [http-1990-Processor14] [com.atlassian.hibernate.HibernateObjectDao] findSingleObject Uh oh - found more than one object when single object requested: [userinfo: three v.1 (2064387), userinfo: three v.1 (2064388)] -- referer: http://localhost:1990/wiki/browsepeople.action?startIndex=0 | url: /wiki/display/~three | userName: testadmin | action: viewuserprofile
This issue may cause future problems in Studio, which has subscriptions from Crowd to notify it when new users are created, and uses the createPersonalInformation() method to put that user in the people directory. I have no idea how this was called concurrently a second time by a different thread (maybe by the indexer in the background before the transaction was committed?) but what is certain is that there ended up being two personal information objects.
- duplicates
-
CONFSERVER-9857 PersonalInformation (userinfo) fetching assumes a uniqueness constraint that isn't enforced
-
- Closed
-
- relates to
-
CONFSERVER-18970 findSingleObject Uh oh - found more than one object when single object requested: [Attachment:***]
-
- Closed
-
[CONFSERVER-16732] Duplicate user information objects created
Workflow | Original: JAC Bug Workflow v3 [ 2900697 ] | New: CONFSERVER Bug Workflow v4 [ 2995440 ] |
Workflow | Original: JAC Bug Workflow v2 [ 2796099 ] | New: JAC Bug Workflow v3 [ 2900697 ] |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |
Workflow | Original: JAC Bug Workflow [ 2726236 ] | New: JAC Bug Workflow v2 [ 2796099 ] |
Workflow | Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2390270 ] | New: JAC Bug Workflow [ 2726236 ] |
Workflow | Original: Confluence Workflow - Public Facing - Restricted v5 [ 2281264 ] | New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2390270 ] |
Workflow | Original: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2222262 ] | New: Confluence Workflow - Public Facing - Restricted v5 [ 2281264 ] |
Workflow | Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2169192 ] | New: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2222262 ] |
Workflow | Original: Confluence Workflow - Public Facing - Restricted v5 [ 1929010 ] | New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2169192 ] |
Workflow | Original: Confluence Workflow - Public Facing - Restricted v3 [ 1730410 ] | New: Confluence Workflow - Public Facing - Restricted v5 [ 1929010 ] |
Workflow | Original: CONF Bug Subtask WF (TEMP) [ 1686582 ] | New: Confluence Workflow - Public Facing - Restricted v3 [ 1730410 ] |