Bug #910 (closed)
IAdmin.lookupGroups does not load the group of the users of a group
Reported by: | jamoore | Owned by: | jamoore |
---|---|---|---|
Priority: | minor | Cc: | jburel |
Sprint: | n.a. | ||
Total Remaining Time: | n.a. |
Description
From Jean-Marie:
I know have the following error: java.lang.NullPointerException at pojos.ExperimenterData.getDefaultGroup(ExperimenterData.java:219) Basically Experimenter.getGroups() is always null Experimenters are retrieved using IAdmin service = getAdminService(); List<ExperimenterGroup> groups = service.lookupGroups(); This code used to work. ... I would imagine post session.
Change History (3)
comment:1 Changed 16 years ago by jmoore
- Cc jburel added
comment:2 Changed 16 years ago by jmoore
- Resolution set to fixed
- Status changed from new to closed
r2326 closes. Jean-Marie, if there are any other changes like this, we may should look at doing them all in beta4 and updating the javadocs for IAdmin.
comment:3 Changed 16 years ago by jburel
The reason I entered the ticket is b/c insight crashes when switching to another user,
and insight code did not change.
Note: See
TracTickets for help on using
tickets.
You may also have a look at Agilo extensions to the ticket.
The query itself does not load the group of the experimenter in
a group and never has:
Probably what was happening pre-sessions is that since login was
happening on each call, the experimenter was being loaded even on
read-only calls. Now it's only loaded on write calls at the most.
Should i add:
"left outer join fetch child.groupExperimenterMap m2 "
"left outer join fetch m2.parent " ?