[ome-users] omero changing group ownership
Chris Allan
callan at lifesci.dundee.ac.uk
Tue Apr 26 14:19:44 BST 2011
Hello Chris,
You cannot currently move images or really any objects between groups. It's something we know is an issue for certain users and it's on our roadmap but you can't do it at present.
-Chris
On 21 Apr 2011, at 15:45, Wood, Christopher wrote:
> Hi,
>
> Is it possible to move projects/datasets/images from one permission group to another?
>
> For example, if use Importer and import under a certain group, can I later change what group the that data belongs to.
>
> I have tried to copy/paste in Insight but I get errors about security (see below):
>
> Thanks
> Chris
>
> java.lang.Exception: org.openmicroscopy.shoola.env.data.DSAccessException: For security reasons, cannot access data.
> Cannot create the objects.
> at org.openmicroscopy.shoola.env.data.OMEROGateway.handleException(OMEROGateway.java:781)
> at org.openmicroscopy.shoola.env.data.OMEROGateway.createObjects(OMEROGateway.java:2730)
> at org.openmicroscopy.shoola.env.data.OmeroDataServiceImpl.addExistingObjects(OmeroDataServiceImpl.java:553)
> at org.openmicroscopy.shoola.env.data.views.calls.ExistingObjectsSaver$2.doCall(ExistingObjectsSaver.java:126)
> at org.openmicroscopy.shoola.env.data.views.BatchCall.doStep(BatchCall.java:144)
> at org.openmicroscopy.shoola.util.concur.tasks.CompositeTask.doStep(CompositeTask.java:226)
> at org.openmicroscopy.shoola.env.data.views.CompositeBatchCall.doStep(CompositeBatchCall.java:126)
> at org.openmicroscopy.shoola.util.concur.tasks.ExecCommand.exec(ExecCommand.java:165)
> at org.openmicroscopy.shoola.util.concur.tasks.ExecCommand.run(ExecCommand.java:274)
> at org.openmicroscopy.shoola.util.concur.tasks.AsyncProcessor$Runner.run(AsyncProcessor.java:91)
> at java.lang.Thread.run(Unknown Source)
> Caused by: org.openmicroscopy.shoola.env.data.DSAccessException: Cannot access data.
> Cannot update the object.
> at org.openmicroscopy.shoola.env.data.OMEROGateway.handleException(OMEROGateway.java:802)
> at org.openmicroscopy.shoola.env.data.OMEROGateway.saveAndReturnObject(OMEROGateway.java:2830)
> at org.openmicroscopy.shoola.env.data.OMEROGateway.createObjects(OMEROGateway.java:2728)
> ... 9 more
> Caused by: omero.SecurityViolation
> serverStackTrace = "ome.conditions.SecurityViolation: Cannot read ome.model.containers.Dataset:Id_653
> at ome.security.basic.BasicACLVoter.throwLoadViolation(BasicACLVoter.java:112)
> at ome.security.CompositeACLVoter.throwLoadViolation(CompositeACLVoter.java:86)
> at ome.security.ACLEventListener.onPostLoad(ACLEventListener.java:104)
> at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:234)
> at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:898)
> at org.hibernate.loader.Loader.doQuery(Loader.java:773)
> at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:270)
> at org.hibernate.loader.Loader.loadEntity(Loader.java:1933)
> at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:86)
> at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:76)
> at org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:3270)
> at org.hibernate.event.def.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:496)
> at org.hibernate.event.def.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:477)
> at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:227)
> at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:147)
> at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:1080)
> at org.hibernate.impl.SessionImpl.immediateLoad(SessionImpl.java:1018)
> at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:176)
> at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:215)
> at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:191)
> at ome.model.containers.Dataset_$$_javassist_2.getDetails(Dataset_$$_javassist_2.java)
> at ome.security.basic.OmeroInterceptor.evaluateLinkages(OmeroInterceptor.java:371)
> at ome.security.basic.OmeroInterceptor.onSave(OmeroInterceptor.java:155)
> at org.hibernate.event.def.AbstractSaveEventListener.substituteValuesIfNecessary(AbstractSaveEventListener.java:414)
> at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:293)
> at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:204)
> at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:144)
> at org.hibernate.event.def.DefaultMergeEventListener.mergeTransientEntity(DefaultMergeEventListener.java:313)
> at org.hibernate.event.def.DefaultMergeEventListener.entityIsTransient(DefaultMergeEventListener.java:282)
> at org.springframework.orm.hibernate3.support.IdTransferringMergeEventListener.entityIsTransient(IdTransferringMergeEventListener.java:59)
> at ome.security.basic.MergeEventListener.entityIsTransient(MergeEventListener.java:135)
> at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:237)
> at ome.security.basic.MergeEventListener.onMerge(MergeEventListener.java:85)
> at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:84)
> at ome.security.basic.MergeEventListener.onMerge(MergeEventListener.java:75)
> at org.hibernate.impl.SessionImpl.fireMerge(SessionImpl.java:859)
> at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:843)
> at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:847)
> at ome.logic.UpdateImpl.internalMerge(UpdateImpl.java:273)
> at ome.logic.UpdateImpl$4.run(UpdateImpl.java:148)
> at ome.logic.UpdateImpl$4.run(UpdateImpl.java:143)
> at ome.logic.UpdateImpl.doAction(UpdateImpl.java:311)
> at ome.logic.UpdateImpl.doAction(UpdateImpl.java:302)
> at ome.logic.UpdateImpl.saveAndReturnArray(UpdateImpl.java:143)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
> at ome.security.basic.EventHandler.invoke(EventHandler.java:157)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
> at org.springframework.orm.hibernate3.HibernateInterceptor.invoke(HibernateInterceptor.java:111)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
> at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:108)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
> at ome.tools.hibernate.ProxyCleanupFilter$Interceptor.invoke(ProxyCleanupFilter.java:231)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
> at ome.services.util.ServiceHandler.invoke(ServiceHandler.java:111)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
> at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
> at $Proxy74.saveAndReturnArray(Unknown Source)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
> at ome.security.basic.BasicSecurityWiring.invoke(BasicSecurityWiring.java:83)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
> at ome.services.blitz.fire.AopContextInitializer.invoke(AopContextInitializer.java:40)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
> at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
> at $Proxy74.saveAndReturnArray(Unknown Source)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at ome.services.blitz.util.IceMethodInvoker.invoke(IceMethodInvoker.java:179)
> at ome.services.throttling.Callback.run(Callback.java:56)
> at ome.services.throttling.InThreadThrottlingStrategy.callInvokerOnRawArgs(InThreadThrottlingStrategy.java:56)
> at ome.services.blitz.impl.AbstractAmdServant.callInvokerOnRawArgs(AbstractAmdServant.java:136)
> at ome.services.blitz.impl.UpdateI.saveAndReturnArray_async(UpdateI.java:58)
> at omero.api._IUpdateTie.saveAndReturnArray_async(_IUpdateTie.java:78)
> at omero.api._IUpdateDisp.___saveAndReturnArray(_IUpdateDisp.java:229)
> at omero.api._IUpdateDisp.__dispatch(_IUpdateDisp.java:357)
> 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 = "Cannot read ome.model.containers.Dataset:Id_653"
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
> at java.lang.reflect.Constructor.newInstance(Unknown Source)
> at java.lang.Class.newInstance0(Unknown Source)
> at java.lang.Class.newInstance(Unknown Source)
> at IceInternal.BasicStream$DynamicUserExceptionFactory.createAndThrow(BasicStream.java:2243)
> at IceInternal.BasicStream.throwException(BasicStream.java:1632)
> at IceInternal.Outgoing.throwUserException(Outgoing.java:442)
> at omero.api._IUpdateDelM.saveAndReturnArray(_IUpdateDelM.java:139)
> at omero.api.IUpdatePrxHelper.saveAndReturnArray(IUpdatePrxHelper.java:186)
> at omero.api.IUpdatePrxHelper.saveAndReturnArray(IUpdatePrxHelper.java:158)
> at org.openmicroscopy.shoola.env.data.OMEROGateway.saveAndReturnObject(OMEROGateway.java:2828)
> ... 10 more
>
> at org.openmicroscopy.shoola.env.ui.UserNotifierImpl.showErrorDialog(UserNotifierImpl.java:159)
> at org.openmicroscopy.shoola.env.ui.UserNotifierImpl.notifyError(UserNotifierImpl.java:246)
> at org.openmicroscopy.shoola.env.ui.UserNotifierImpl.notifyError(UserNotifierImpl.java:218)
> at org.openmicroscopy.shoola.agents.treeviewer.DataTreeViewerLoader.handleException(DataTreeViewerLoader.java:170)
> at org.openmicroscopy.shoola.env.data.events.DSCallAdapter.eventFired(DSCallAdapter.java:84)
> at org.openmicroscopy.shoola.env.data.views.BatchCallMonitor$1.run(BatchCallMonitor.java:124)
> at java.awt.event.InvocationEvent.dispatch(Unknown Source)
> at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
> at java.awt.EventQueue.access$000(Unknown Source)
> at java.awt.EventQueue$1.run(Unknown Source)
> at java.awt.EventQueue$1.run(Unknown Source)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
> at java.awt.EventQueue.dispatchEvent(Unknown Source)
> at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
> at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
> at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> at java.awt.EventDispatchThread.run(Unknown Source)
> Thanks
> Chris
> _______________________________________________
> ome-users mailing list
> ome-users at lists.openmicroscopy.org.uk
> http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users
More information about the ome-users
mailing list