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

Opened 13 years ago

Closed 13 years ago

BUG:Changing active group throws SecurityViolation

Reported by: atarkowska Owned by: jamoore
Priority: blocker Milestone: OMERO-Beta4.2.1
Component: Services Version: n.a.
Keywords: n.a. Cc:
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: n.a.
Sprint: 2010-11-11 (19)

Description (last modified by atarkowska)

Changing active group after joining existing session throws SecurityViolation?

Traceback (most recent call last):
  File "/Users/ola/Dev/omero/components/tools/OmeroPy/test/integration/tickets4000.py", line 126, in chageActiveGroupWhenConnectionLost
    sf.setSecurityContext(omero.model.ExperimenterGroupI(grp.id.val, False))
  File "/Users/ola/Dev/omero/components/tools/OmeroPy/target/omero_API_ice.py", line 197, in setSecurityContext
    return _M_omero.api.ServiceFactory._op_setSecurityContext.invoke(self, ((obj, ), _ctx))
SecurityViolation: exception ::omero::SecurityViolation
{
    serverStackTrace = ome.conditions.SecurityViolation: SecurityContext change cancelled:
Client 4b2669dc-7075-49ef-beed-d411ce35d4c9 has active stateful services:
a:c:1:fe:-7aa64d1e:12be294bfc0:-7f23omero.api.ThumbnailStore
a:c:1:fe:-7aa64d1e:12be294bfc0:-7f24omero.api.Search
Client 2cdacc6a-aac7-416c-a5f3-e7efa7621a6a has active stateful services:
a:c:1:fe:-7aa64d1e:12be294bfc0:-7f23omero.api.ThumbnailStore
a:c:1:fe:-7aa64d1e:12be294bfc0:-7f24omero.api.Search
	at ome.services.sessions.events.ChangeSecurityContextEvent.throwIfCancelled(ChangeSecurityContextEvent.java:61)
	at ome.services.sessions.SessionManagerImpl.setSecurityContext(SessionManagerImpl.java:1106)
	at ome.services.blitz.impl.ServiceFactoryI.setSecurityContext(ServiceFactoryI.java:319)
	at omero.api._ServiceFactoryDisp.___setSecurityContext(_ServiceFactoryDisp.java:385)
	at omero.api._ServiceFactoryDisp.__dispatch(_ServiceFactoryDisp.java:1347)
	at IceInternal.Incoming.invoke(Incoming.java:159)
	at Ice.ConnectionI.invokeAll(ConnectionI.java:2037)
	at Ice.ConnectionI.message(ConnectionI.java:972)
	at IceInternal.ThreadPool.run(ThreadPool.java:577)
	at IceInternal.ThreadPool.access$100(ThreadPool.java:12)
	at IceInternal.ThreadPool$EventHandlerThread.run(ThreadPool.java:971)
    serverExceptionClass = ome.conditions.SecurityViolation
    message = SecurityContext change cancelled:
Client 4b2669dc-7075-49ef-beed-d411ce35d4c9 has active stateful services:
a:c:1:fe:-7aa64d1e:12be294bfc0:-7f23omero.api.ThumbnailStore
a:c:1:fe:-7aa64d1e:12be294bfc0:-7f24omero.api.Search
Client 2cdacc6a-aac7-416c-a5f3-e7efa7621a6a has active stateful services:
a:c:1:fe:-7aa64d1e:12be294bfc0:-7f23omero.api.ThumbnailStore
a:c:1:fe:-7aa64d1e:12be294bfc0:-7f24omero.api.Search
}

Change History (6)

comment:1 Changed 13 years ago by atarkowska

  • Component changed from General to Services
  • Description modified (diff)
  • Owner set to jmoore
  • Priority changed from minor to blocker

comment:2 Changed 13 years ago by atarkowska

(In [8391]) test, see #3189

comment:3 Changed 13 years ago by jmoore

(In [8402]) Modifying setSecurityContext test to pass (See #2339, #3189)

Two services were not closed and therefore the exception
is expected. See comments in test for more information.

comment:4 Changed 13 years ago by jmoore

  • Summary changed from BUG:Chaning active group throws SecurityViolation to BUG:Changing active group throws SecurityViolation

Ola, do you still have access to the original contents of the proxies dict after the connection is lost? Or is that in another process?

comment:5 Changed 13 years ago by jburel

  • Sprint changed from 2010-10-28 (18) to 2010-11-11 (19)

Referencing ticket #3168 has changed sprint.

comment:6 Changed 13 years ago by jmoore

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

Closing since I assume #3209 covers this.

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

We're Hiring!