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"

Task #9896 (closed)

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

BUG: Add existing user empty menu Insight

Reported by: pwalczysko Owned by: bpindelski
Priority: minor Milestone: OMERO-4.4.7
Component: Insight Version: n.a.
Keywords: n.a. Cc: rkferguson
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: n.a.
Sprint: 2012-11-20 (2)

Description (last modified by pwalczysko)

  1. Build OMERO.clients-4.4.4-209-76b1091-dirty-ice33-b56.mac from Package folder downloaded on 12-11-12.
  2. Go to Administration tab.
  3. (Without previously expanding it) right-click on a group
  4. Choose Add existing user
  5. The menu of existing user's is empty
  6. Cancel, go back to the tree
  7. Expand the group
  8. Right-click on the group
  9. Choose Add existing user
  10. The users will be in the menu now

When the group is collapsed back again, the Add existing user menu item is still showing the users as it should.

Attachments (2)

Add existing user empty window.png (85.0 KB) - added by pwalczysko 11 years ago.
Available menu full when tree expand.png (103.3 KB) - added by pwalczysko 11 years ago.

Download all attachments as: .zip

Change History (10)

Changed 11 years ago by pwalczysko

Changed 11 years ago by pwalczysko

comment:1 Changed 11 years ago by pwalczysko

  • Description modified (diff)

comment:2 Changed 11 years ago by bpindelski

It seems that

Set l = group.getExperimenters();

in TreeViewComponent.java:1737 returns a null if the user/group tree hasn't been expanded. More debugging needed on server side to see why Pojo is not returning a list of users...

comment:3 Changed 11 years ago by bpindelski

It seems that the asGroup().sizeOfGroupExperimenterMap() >= 0) condition in GroupData.java is the main cause of errors in this issue and #9895. When the getExperimenters() method is called, it returns null and causes either an NPE or the bug mentioned here...

comment:4 Changed 11 years ago by jmoore

sizeOfGroupExperimenterMap < 0 would mean that the items are not loaded, which I guess the insight code is not expecting. If the value is zero, that means there are no experimenters, and so perhaps an empty set would be better. (That would be my expectation)

comment:5 Changed 11 years ago by bpindelski

There is indeed something strange happening here. Will need to consult J-M about Insight code. From what I see, OMEROGateway has a List<ExperimenterData> loadExperimenters(SecurityContext ctx, long groupID) method which definitely returns a list of all OMERO users. I need to see if that has any influence on the value stored in the POJO.

comment:6 Changed 11 years ago by bpindelski

  • Owner changed from jburel to bpindelski

comment:7 Changed 11 years ago by bpindelski

  • Resolution set to fixed
  • Status changed from new to closed

comment:8 Changed 11 years ago by Blazej Pindelski <bpindelski@…>

(In [a993d5ad908a7c544be2f1f5468ab57d5f79865d/ome.git] on branch develop) Fix User Administration in Insight (See #9896)

With Jean-Marie's help #9896 is now fixed. When the admin right-clicks
on the target group for adding users, the dialog is filled in with
elements.

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.67528 sec.)

We're Hiring!