Skip to content

Regression

OmeroPy.test.integration.test_repository.TestDbSync.testMtime (from pytest)

Failing for the past 1 build (Since #408 )
Took 2.1 sec.

Error Message

omero.SecurityViolation: exception ::omero::SecurityViolation
{
    serverStackTrace = ome.conditions.SecurityViolation: Cannot find parent directory: CheckedPath(home/omero/omero/tmp/omero_omero/187760/omero4oc_gny8.tmp)
	at ome.services.blitz.repo.RepositoryDaoImpl.canWriteParentDirectory(RepositoryDaoImpl.java:1070)
	at ome.services.blitz.repo.RepositoryDaoImpl._internalRegister(RepositoryDaoImpl.java:829)
	at ome.services.blitz.repo.RepositoryDaoImpl.access$100(RepositoryDaoImpl.java:72)
	at ome.services.blitz.repo.RepositoryDaoImpl$10.doWork(RepositoryDaoImpl.java:613)
	at ome.services.blitz.repo.RepositoryDaoImpl$10.doWork(RepositoryDaoImpl.java:610)
	at jdk.internal.reflect.GeneratedMethodAccessor265.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
	at ome.services.util.Executor$Impl$Interceptor.invoke(Executor.java:568)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
	at ome.security.basic.EventHandler.invoke(EventHandler.java:154)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
	at org.springframework.orm.hibernate3.HibernateInterceptor.invoke(HibernateInterceptor.java:119)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
	at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
	at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:283)
	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
	at ome.tools.hibernate.ProxyCleanupFilter$Interceptor.invoke(ProxyCleanupFilter.java:249)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
	at ome.services.util.ServiceHandler.invoke(ServiceHandler.java:121)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
	at com.sun.proxy.$Proxy74.doWork(Unknown Source)
	at ome.services.util.Executor$Impl.execute(Executor.java:447)
	at ome.services.blitz.repo.RepositoryDaoImpl.register(RepositoryDaoImpl.java:608)
	at ome.services.blitz.repo.PublicRepositoryI.findOrCreateInDb(PublicRepositoryI.java:493)
	at ome.services.blitz.repo.PublicRepositoryI.findOrCreateInDb(PublicRepositoryI.java:474)
	at ome.services.blitz.repo.PublicRepositoryI.file(PublicRepositoryI.java:362)
	at omero.grid._ManagedRepositoryTie.file(_ManagedRepositoryTie.java:112)
	at omero.grid._RepositoryDisp.___file(_RepositoryDisp.java:371)
	at omero.grid._ManagedRepositoryDisp.__dispatch(_ManagedRepositoryDisp.java:536)
	at IceInternal.Incoming.invoke(Incoming.java:221)
	at Ice.ConnectionI.invokeAll(ConnectionI.java:2536)
	at Ice.ConnectionI.dispatch(ConnectionI.java:1145)
	at Ice.ConnectionI.message(ConnectionI.java:1056)
	at IceInternal.ThreadPool.run(ThreadPool.java:395)
	at IceInternal.ThreadPool.access$300(ThreadPool.java:12)
	at IceInternal.ThreadPool$EventHandlerThread.run(ThreadPool.java:832)
	at java.base/java.lang.Thread.run(Thread.java:829)

    serverExceptionClass = ome.conditions.SecurityViolation
    message = Cannot find parent directory: CheckedPath(home/omero/omero/tmp/omero_omero/187760/omero4oc_gny8.tmp)
}

Stacktrace

self = <test.integration.test_repository.TestDbSync object at 0x7f95556bb4d0>

    def testMtime(self):
        filename = self.unique_dir + "/file.txt"
        mrepo = self.get_managed_repo()
    
>       ofile = self.create_file(mrepo, filename)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

test/integration/test_repository.py:341: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../../../.venv3/lib64/python3.11/site-packages/omero/testlib/__init__.py:1273: in create_file
    rfs = mrepo1.file(filename, "rw")
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PublicRepository-0c9dd58c-48c2-4125-b1e8-a55b6263657e -t -e 1.1:tcp -h 172.18.0.10 -p 35311 -t 60000
path = path('/home/omero/omero/tmp/omero_omero/187760/omero4oc_gny8.tmp/file.txt')
mode = 'rw', _ctx = None

    def file(self, path, mode, _ctx=None):
>       return _M_omero.grid.Repository._op_file.invoke(self, ((path, mode), _ctx))
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E       omero.SecurityViolation: exception ::omero::SecurityViolation
E       {
E           serverStackTrace = ome.conditions.SecurityViolation: Cannot find parent directory: CheckedPath(home/omero/omero/tmp/omero_omero/187760/omero4oc_gny8.tmp)
E       	at ome.services.blitz.repo.RepositoryDaoImpl.canWriteParentDirectory(RepositoryDaoImpl.java:1070)
E       	at ome.services.blitz.repo.RepositoryDaoImpl._internalRegister(RepositoryDaoImpl.java:829)
E       	at ome.services.blitz.repo.RepositoryDaoImpl.access$100(RepositoryDaoImpl.java:72)
E       	at ome.services.blitz.repo.RepositoryDaoImpl$10.doWork(RepositoryDaoImpl.java:613)
E       	at ome.services.blitz.repo.RepositoryDaoImpl$10.doWork(RepositoryDaoImpl.java:610)
E       	at jdk.internal.reflect.GeneratedMethodAccessor265.invoke(Unknown Source)
E       	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
E       	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
E       	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)
E       	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
E       	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
E       	at ome.services.util.Executor$Impl$Interceptor.invoke(Executor.java:568)
E       	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
E       	at ome.security.basic.EventHandler.invoke(EventHandler.java:154)
E       	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
E       	at org.springframework.orm.hibernate3.HibernateInterceptor.invoke(HibernateInterceptor.java:119)
E       	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
E       	at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
E       	at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:283)
E       	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
E       	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
E       	at ome.tools.hibernate.ProxyCleanupFilter$Interceptor.invoke(ProxyCleanupFilter.java:249)
E       	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
E       	at ome.services.util.ServiceHandler.invoke(ServiceHandler.java:121)
E       	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
E       	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
E       	at com.sun.proxy.$Proxy74.doWork(Unknown Source)
E       	at ome.services.util.Executor$Impl.execute(Executor.java:447)
E       	at ome.services.blitz.repo.RepositoryDaoImpl.register(RepositoryDaoImpl.java:608)
E       	at ome.services.blitz.repo.PublicRepositoryI.findOrCreateInDb(PublicRepositoryI.java:493)
E       	at ome.services.blitz.repo.PublicRepositoryI.findOrCreateInDb(PublicRepositoryI.java:474)
E       	at ome.services.blitz.repo.PublicRepositoryI.file(PublicRepositoryI.java:362)
E       	at omero.grid._ManagedRepositoryTie.file(_ManagedRepositoryTie.java:112)
E       	at omero.grid._RepositoryDisp.___file(_RepositoryDisp.java:371)
E       	at omero.grid._ManagedRepositoryDisp.__dispatch(_ManagedRepositoryDisp.java:536)
E       	at IceInternal.Incoming.invoke(Incoming.java:221)
E       	at Ice.ConnectionI.invokeAll(ConnectionI.java:2536)
E       	at Ice.ConnectionI.dispatch(ConnectionI.java:1145)
E       	at Ice.ConnectionI.message(ConnectionI.java:1056)
E       	at IceInternal.ThreadPool.run(ThreadPool.java:395)
E       	at IceInternal.ThreadPool.access$300(ThreadPool.java:12)
E       	at IceInternal.ThreadPool$EventHandlerThread.run(ThreadPool.java:832)
E       	at java.base/java.lang.Thread.run(Thread.java:829)
E       
E           serverExceptionClass = ome.conditions.SecurityViolation
E           message = Cannot find parent directory: CheckedPath(home/omero/omero/tmp/omero_omero/187760/omero4oc_gny8.tmp)
E       }

../../../../.venv3/lib64/python3.11/site-packages/omero_Repositories_ice.py:506: SecurityViolation