Task #6565 (closed)
Opened 8 years ago
Closed 8 years ago
Bug: SecurityViolation on change group
| Reported by: | jamoore | Owned by: | jburel |
|---|---|---|---|
| Priority: | critical | Milestone: | OMERO-Beta4.3.2 |
| Component: | Insight | Version: | n.a. |
| Keywords: | n.a. | Cc: | |
| Resources: | n.a. | Referenced By: | n.a. |
| References: | n.a. | Remaining Time: | 0.0d |
| Sprint: | 2011-09-01 (4) |
Description (last modified by jmoore)
The following is printed to the console when running insight from ant on a change group after viewing screens and plates in the previous group. This prevents the group from being changed as requested.
[echo] Launching OMERO.insight ...
[java] org.openmicroscopy.shoola.env.data.DSAccessException: Cannot access data.
[java] Can't modify the current group.
[java] at org.openmicroscopy.shoola.env.data.OMEROGateway.handleException(OMEROGateway.java:911)
[java] at org.openmicroscopy.shoola.env.data.OMEROGateway.changeCurrentGroup(OMEROGateway.java:2365)
[java] at org.openmicroscopy.shoola.env.data.AdminServiceImpl.changeExperimenterGroup(AdminServiceImpl.java:230)
[java] at org.openmicroscopy.shoola.env.data.views.calls.SwitchUserGroupLoader.switchUserGroup(SwitchUserGroupLoader.java:67)
[java] at org.openmicroscopy.shoola.env.data.views.calls.SwitchUserGroupLoader.access$000(SwitchUserGroupLoader.java:50)
[java] at org.openmicroscopy.shoola.env.data.views.calls.SwitchUserGroupLoader$1.doCall(SwitchUserGroupLoader.java:88)
[java] at org.openmicroscopy.shoola.env.data.views.BatchCall.doStep(BatchCall.java:144)
[java] at org.openmicroscopy.shoola.util.concur.tasks.CompositeTask.doStep(CompositeTask.java:226)
[java] at org.openmicroscopy.shoola.env.data.views.CompositeBatchCall.doStep(CompositeBatchCall.java:126)
[java] at org.openmicroscopy.shoola.util.concur.tasks.ExecCommand.exec(ExecCommand.java:165)
[java] at org.openmicroscopy.shoola.util.concur.tasks.ExecCommand.run(ExecCommand.java:274)
[java] at org.openmicroscopy.shoola.util.concur.tasks.AsyncProcessor$Runner.run(AsyncProcessor.java:91)
[java] at java.lang.Thread.run(Thread.java:680)
[java] Caused by: omero.SecurityViolation
[java] serverStackTrace = "ome.conditions.SecurityViolation: SecurityContext change cancelled:
[java] Client 39cfe7f2-617e-4b4a-87f4-9eccb0be33d6 has active stateful services:
[java]
[java] c0:a8:b2:20:219c522a:131f5b2d671:-7ff1omero.api.RenderingEngine
[java] c0:a8:b2:20:219c522a:131f5b2d671:-7fefomero.api.RenderingEngine
[java] Client f9e5438c-219a-4848-a79b-7839e13ddfde has active stateful services:
[java]
[java] c0:a8:b2:20:219c522a:131f5b2d671:-7ff1omero.api.RenderingEngine
[java] c0:a8:b2:20:219c522a:131f5b2d671:-7fefomero.api.RenderingEngine
[java]
[java] at ome.services.sessions.events.ChangeSecurityContextEvent.throwIfCancelled(ChangeSecurityContextEvent.java:61)
[java] at ome.services.sessions.SessionManagerImpl.setSecurityContext(SessionManagerImpl.java:1114)
[java] at ome.services.blitz.impl.ServiceFactoryI.setSecurityContext(ServiceFactoryI.java:239)
[java] at omero.api._ServiceFactoryTie.setSecurityContext(_ServiceFactoryTie.java:322)
[java] at omero.api._ServiceFactoryDisp.___setSecurityContext(_ServiceFactoryDisp.java:400)
[java] at omero.api._ServiceFactoryDisp.__dispatch(_ServiceFactoryDisp.java:1387)
[java] at IceInternal.Incoming.invoke(Incoming.java:159)
[java] at Ice.ConnectionI.invokeAll(ConnectionI.java:2037)
[java] at Ice.ConnectionI.message(ConnectionI.java:972)
[java] at IceInternal.ThreadPool.run(ThreadPool.java:577)
[java] at IceInternal.ThreadPool.access$100(ThreadPool.java:12)
[java] at IceInternal.ThreadPool$EventHandlerThread.run(ThreadPool.java:971)
[java] "
[java] serverExceptionClass = "ome.conditions.SecurityViolation"
[java] message = "SecurityContext change cancelled:
[java] Client 39cfe7f2-617e-4b4a-87f4-9eccb0be33d6 has active stateful services:
[java]
[java] c0:a8:b2:20:219c522a:131f5b2d671:-7ff1omero.api.RenderingEngine
[java] c0:a8:b2:20:219c522a:131f5b2d671:-7fefomero.api.RenderingEngine
[java] Client f9e5438c-219a-4848-a79b-7839e13ddfde has active stateful services:
[java]
[java] c0:a8:b2:20:219c522a:131f5b2d671:-7ff1omero.api.RenderingEngine
[java] c0:a8:b2:20:219c522a:131f5b2d671:-7fefomero.api.RenderingEngine
[java] "
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
[java] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
[java] at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
[java] at java.lang.Class.newInstance0(Class.java:355)
[java] at java.lang.Class.newInstance(Class.java:308)
[java] at IceInternal.BasicStream$DynamicUserExceptionFactory.createAndThrow(BasicStream.java:2243)
[java] at IceInternal.BasicStream.throwException(BasicStream.java:1632)
[java] at IceInternal.Outgoing.throwUserException(Outgoing.java:442)
[java] at omero.api._ServiceFactoryDelM.setSecurityContext(_ServiceFactoryDelM.java:1688)
[java] at omero.api.ServiceFactoryPrxHelper.setSecurityContext(ServiceFactoryPrxHelper.java:1741)
[java] at omero.api.ServiceFactoryPrxHelper.setSecurityContext(ServiceFactoryPrxHelper.java:1713)
[java] at org.openmicroscopy.shoola.env.data.OMEROGateway.changeCurrentGroup(OMEROGateway.java:2362)
[java] ... 11 more
Change History (9)
comment:1 Changed 8 years ago by jmoore
- Description modified (diff)
- Priority changed from major to critical
comment:2 Changed 8 years ago by jburel
comment:3 Changed 8 years ago by jmoore
Just now I couldn't reproduce it. I'll keep trying. It involved logging in, viewing other users' data in the same group, and then changing groups.
comment:4 Changed 8 years ago by jburel
did you switch group from insight?
or
you are logged in, and move data from one group to another via script.
comment:5 Changed 8 years ago by jmoore
Hmmmm...maybe this was a result of calling chgrp from OmeroCli. I'll give that a try to reproduce.
comment:6 Changed 8 years ago by jmoore
Got it:
- Login to group with unloadable images
- Double click on image and get the "The image could not be opened / not a valid image" message
- Try to change group.
comment:7 Changed 8 years ago by jburel
- Remaining Time set to 0.1
- Status changed from new to accepted
comment:8 Changed 8 years ago by jburel
- Sprint set to 2011-09-01 (4)
comment:9 Changed 8 years ago by jburel <j.burel@…>
- Remaining Time changed from 0.1 to 0
- Resolution set to fixed
- Status changed from accepted to closed
(In [fe87341d8eb640a735e41d5d294d3614cfafbfb0/ome.git] on branch develop) Make sure that the user can switch between group after attempting to open an invalid image (close #6565)
could you indicate the sequence?