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 #1229 (closed)

Opened 15 years ago

Closed 15 years ago

Cannot change default group

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

Description

User may want to change active group.

def changeActiveGroup(self, gid): 
        s = self.getSessionService()
        a = self.getAdminService()
        gr = a.getGroup(long(gid))
        session = s.getSession(self._sessionUuid)
        session.details.group = gr
        s.updateSession(session)
        self._eventContext = self._proxies['admin'].getEventContext()

throws exception:

2009-03-11 15:19:39,416 INFO  [        ome.services.util.ServiceHandler] (l.Server-8)  Meth:    interface ome.api.IAdmin.getGroup
2009-03-11 15:19:39,416 INFO  [        ome.services.util.ServiceHandler] (l.Server-8)  Args:    [2]
2009-03-11 15:19:39,427 INFO  [         ome.security.basic.EventHandler] (l.Server-8)  Auth:    user=152,group=0,event=8799(User)
2009-03-11 15:19:39,631 INFO  [        ome.services.util.ServiceHandler] (l.Server-8)  Rslt:    ome.model.meta.ExperimenterGroup:Id_2
2009-03-11 15:19:39,644 INFO  [        ome.services.util.ServiceHandler] (l.Server-5)  Meth:    interface ome.api.ISession.getSession
2009-03-11 15:19:39,645 INFO  [        ome.services.util.ServiceHandler] (l.Server-5)  Args:    [96bb6dd9-a18e-453f-b5aa-ef61ffca945a]
2009-03-11 15:19:39,645 INFO  [        ome.services.util.ServiceHandler] (l.Server-5)  Rslt:    ome.model.meta.Session:Id_1749
2009-03-11 15:19:39,657 INFO  [        ome.services.util.ServiceHandler] (l.Server-3)  Meth:    interface ome.api.ISession.updateSession
2009-03-11 15:19:39,657 INFO  [        ome.services.util.ServiceHandler] (l.Server-3)  Args:    [ome.model.meta.Session:Id_1749]
2009-03-11 15:19:39,657 INFO  [        ome.services.util.ServiceHandler] (l.Server-3)  Excp:    ome.conditions.ApiUsageException: Cannot change default group to ome.model.meta.ExperimenterGroup:Id_2
Already logged in. Use Executor.submit() and .get().
2009-03-11 15:19:40,239 INFO  [        ome.services.util.ServiceHandler] (l.Server-7)  Meth:    interface ome.api.ISession.updateSession
2009-03-11 15:19:40,239 INFO  [        ome.services.util.ServiceHandler] (l.Server-7)  Args:    [ome.model.meta.Session:Id_1749]
2009-03-11 15:19:40,240 INFO  [        ome.services.util.ServiceHandler] (l.Server-7)  Excp:    ome.conditions.ApiUsageException: Cannot change default group to ome.model.meta.ExperimenterGroup:Id_2
Already logged in. Use Executor.submit() and .get().

Change History (1)

comment:1 Changed 15 years ago by jmoore

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

r4001 should do it.

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

We're Hiring!