Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Bug #463 (closed)

Opened 17 years ago

Closed 16 years ago

Last modified 16 years ago

Multi GroupExperimenterMaps with default = true cause weird exception

Reported by: jamoore Owned by: jamoore
Priority: critical Cc:
Sprint: n.a.
Total Remaining Time: n.a.

Description

20:37:34,089 INFO  [ServiceHandler] Excp:       org.springframework.orm.hibernate3.HibernateSystemException: More than one row with the given identifier was found: 50, for class: ome.model.meta.Experimenter; nested exception is org.hibernate.HibernateException: More than one row with the given identifier was found: 50, for class: ome.model.meta.Experimenter

is thrown during the (new) AddGroupTask while calling setGroupOwner()->userProxy() if a user has multiple default groups. This is a known weakness, but is the first example of consequences of not controlling the value. This needs validation.

omero3=# select * from groupexperimentermap where child = 50;
 id  | owner_id | group_id | creation_id | update_id | permissions | external_id | version | defaultgrouplink | child | parent
-----+----------+----------+-------------+-----------+-------------+-------------+---------+------------------+-------+--------
  80 |        0 |        1 |         988 |       988 |          -1 |             |       0 | t                |    50 |      1
 195 |       53 |        1 |           0 |         0 |          -1 |             |       0 | t                |    50 |     53
(2 rows)

Change History (3)

comment:2 Changed 16 years ago by jmoore

  • Milestone changed from Unscheduled to 3.0-Beta3
  • Resolution set to fixed
  • Status changed from new to closed

This is no longer possible. With the changes outlined in UpgradeGuide_3_0_Beta3, the group experimenter map has no default field.

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.95177 sec.)

We're Hiring!