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

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

Bug: imgData exception when Image is shared

Reported by: cxallan Owned by: cxallan
Priority: minor Milestone: OMERO-Beta4.3.2
Component: Web Version: n.a.
Keywords: n.a. Cc: wmoore
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.0d
Sprint: 2011-09-15 (5)

Description

When an Image is shared (and its containing Dataset is not shared) exceptions are thrown when the imgData JSON data is requested.

Change History (5)

comment:1 Changed 8 years ago by cxallan

Example exception:

...
Mon, 05 Sep 2011 10:15:57 blitz_gateway WARNING  SecurityViolation on <class 'webclient.webclient_gateway.OmeroWebSafeCallWrapper'> to <3b9274f2-d67c-432b-a758-20a937743d0domero.api.IQuery> findByQuery(('\n            select ds from Ima
ge i join i.datasetLinks dl join dl.parent ds\n            where i.id = 7857\n            ', None), {})
Traceback (most recent call last):
  File "/Users/callan/code/ome.git/dist/lib/python/omero/gateway/__init__.py", line 2953, in __call__
    return self.f(*args, **kwargs)
  File "/Users/callan/code/ome.git/dist/lib/python/omero_api_IQuery_ice.py", line 132, in findByQuery
    return _M_omero.api.IQuery._op_findByQuery.invoke(self, ((query, params), _ctx))
SecurityViolation: exception ::omero::SecurityViolation
{
    serverStackTrace = ome.conditions.SecurityViolation: ome.model.containers.Dataset:Id_1151 not contained in share
        at ome.security.sharing.SharingACLVoter.throwLoadViolation(SharingACLVoter.java:73)
        at ome.security.CompositeACLVoter.throwLoadViolation(CompositeACLVoter.java:86)
        at ome.security.ACLEventListener.onPostLoad(ACLEventListener.java:104)
        at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:250)
        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.doList(Loader.java:2449)
        at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2192)
        at org.hibernate.loader.Loader.list(Loader.java:2187)
        at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:452)
        at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:363)
        at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196)
        at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1260)
        at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102)
        at org.hibernate.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:859)
        at ome.services.query.Query.doInHibernate(Query.java:244)
        at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:406)
        at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:339)
        at ome.logic.QueryImpl.execute(QueryImpl.java:142)
        at ome.logic.QueryImpl.findByQuery(QueryImpl.java:354)
        at sun.reflect.GeneratedMethodAccessor299.invoke(Unknown Source)
        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:150)
        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:116)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
        at $Proxy72.findByQuery(Unknown Source)
        at sun.reflect.GeneratedMethodAccessor299.invoke(Unknown Source)
        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:43)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
        at $Proxy72.findByQuery(Unknown Source)
        at sun.reflect.GeneratedMethodAccessor303.invoke(Unknown Source)
        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.QueryI.findByQuery_async(QueryI.java:92)
        at omero.api._IQueryTie.findByQuery_async(_IQueryTie.java:113)
        at omero.api._IQueryDisp.___findByQuery(_IQueryDisp.java:342)
        at omero.api._IQueryDisp.__dispatch(_IQueryDisp.java:508)
        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 = ome.model.containers.Dataset:Id_1151 not contained in share
}

comment:2 Changed 8 years ago by cxallan

  • Owner changed from atarkowska to cxallan
  • Remaining Time set to 0.25

comment:3 Changed 8 years ago by cxallan

  • Status changed from new to accepted

comment:4 Changed 8 years ago by Chris Allan <callan@…>

  • Remaining Time changed from 0.25 to 0
  • Resolution set to fixed
  • Status changed from accepted to closed

(In [9f412b91aa196fa6053113d12f9dee4e0c0eb767/ome.git] on branch develop) Merge branch 'bug/6660' into develop

Fixes #6660.

comment:5 Changed 8 years ago by Chris Allan <callan@…>

(In [5c994a782e8520006f2d350f8830a9ecced793e3/ome.git] on branch develop) Ensure the imgData is not broken when the parent is WellSample?. (See #6660)

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

We're Hiring!