Task #2658 (closed)
Opened 9 years ago
Closed 7 years ago
python gateway close()
| Reported by: | wmoore | Owned by: | dzmacdonald |
|---|---|---|---|
| Priority: | major | Milestone: | Unscheduled |
| Component: | OmeroPy | Version: | n.a. |
| Keywords: | n.a. | Cc: | jamoore |
| Resources: | n.a. | Referenced By: | n.a. |
| References: | n.a. | Remaining Time: | n.a. |
| Sprint: | n.a. |
Description
Gateways created with session.createGateway() seem to leave some services open after gateway.close() has been called.
This causes a security exception when you try to change security context (switch group etc).
======================================================================
ERROR: testThumbs (__main__.TestThumbnailPerms)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test/integration/thumbnailPerms.py", line 149, in testThumbs
client_share1.sf.setSecurityContext(omero.model.ExperimenterGroupI(gid2, False))
File "/Users/will/Documents/workspace/Omero/dist/lib/python/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 b3d9112e-1e29-443f-9429-676459fb3d71 has active stateful services: count=10
at ome.services.sessions.events.ChangeSecurityContextEvent.throwIfCancelled(ChangeSecurityContextEvent.java:61)
at ome.services.sessions.SessionManagerImpl.setSecurityContext(SessionManagerImpl.java:1099)
at ome.services.blitz.impl.ServiceFactoryI.setSecurityContext(ServiceFactoryI.java:312)
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 b3d9112e-1e29-443f-9429-676459fb3d71 has active stateful services: count=10
}
Change History (2)
comment:1 Changed 9 years ago by wmoore
comment:2 Changed 7 years ago by jburel
- Resolution set to invalid
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
You may also have a look at Agilo extensions to the ticket.
(In [7748]) Adding Python integration tests see #2067, one of which fails: See #2658.