Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
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 #2561 (closed)

Opened 14 years ago

Closed 14 years ago

BUG: User Script sharing

Reported by: wmoore Owned by: jamoore
Priority: minor Milestone: OMERO-Beta4.2
Component: Scripting Version: n.a.
Keywords: n.a. Cc:
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: n.a.
Sprint: 2010-06-24 (12)

Description (last modified by wmoore)

Uploaded a user script as one user, and tried to run it as another user, using their own user-processor.

This should work, right? I never tested it before!

Change History (4)

comment:1 Changed 14 years ago by wmoore

wjm:dist will$ bin/omero -s localhost -u user script serve user
Reconnected to session b4e5a3ae-d018-47bb-9413-2d3722b2a874 (user@localhost). Idle timeout: 10.0 min. Current group: JRS-collaborative
2010-07-05 12:03:06,164 INFO  [                    omero.util.Resources] (Thread-2  ) Starting
2010-07-05 12:03:06,165 INFO  [              omero.processor.ProcessorI] (MainThread) Registering processor 088F262A-6A48-49F1-8491-1ABF9CACED0C -t:tcp -h 169.254.32.22 -p 62891:tcp -h 10.12.1.142 -p 62891
Press any key to exit...
2010-07-05 12:03:42,827 INFO  [                            omero.remote] (Dummy-3   )  Meth: ProcessorI.willAccept
2010-07-05 12:03:42,977 ERROR [              omero.processor.ProcessorI] (Dummy-3   ) File lookup failed: user=6, group=9, script=153
Traceback (most recent call last):
  File "/Users/will/Documents/workspace/Omero/dist/lib/python/omero/processor.py", line 740, in willAccept
    file, handle = self.lookup(scriptContext)
  File "/Users/will/Documents/workspace/Omero/dist/lib/python/omero/processor.py", line 715, in lookup
    file = prx.validateScript(job, self.accepts_list)
  File "/Users/will/Documents/workspace/Omero/dist/lib/python/omero/processor.py", line 36, in handler
    return func(*args, **kwargs)
  File "/Users/will/Documents/workspace/Omero/dist/lib/python/omero_api_IScript_ice.py", line 162, in validateScript
    return _M_omero.api.IScript._op_validateScript.invoke(self, ((j, acceptsList), _ctx))
ValidationException: exception ::omero::ValidationException
{
    serverStackTrace = ome.conditions.ValidationException: Found wrong number of files: []
	at ome.services.blitz.impl.ScriptI$13$1.doWork(ScriptI.java:487)
	at sun.reflect.GeneratedMethodAccessor166.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:592)
	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.services.util.Executor$Impl$Interceptor.invoke(Executor.java:409)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at ome.security.basic.EventHandler.invoke(EventHandler.java:144)
	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:175)
	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 $Proxy56.doWork(Unknown Source)
	at ome.services.util.Executor$Impl.execute(Executor.java:339)
	at ome.services.blitz.impl.ScriptI$13.call(ScriptI.java:480)
	at ome.services.throttling.Callback2.run(Callback2.java:49)
	at ome.services.throttling.InThreadThrottlingStrategy.safeRunnableCall(InThreadThrottlingStrategy.java:80)
	at ome.services.blitz.impl.AbstractAmdServant.safeRunnableCall(AbstractAmdServant.java:151)
	at ome.services.blitz.impl.ScriptI.validateScript_async(ScriptI.java:463)
	at omero.api._IScriptTie.validateScript_async(_IScriptTie.java:148)
	at omero.api._IScriptDisp.___validateScript(_IScriptDisp.java:439)
	at omero.api._IScriptDisp.__dispatch(_IScriptDisp.java:546)
	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.ValidationException
    message = Found wrong number of files: []
}
2010-07-05 12:03:43,022 INFO  [                            omero.remote] (Dummy-3   )  Rslt: None

comment:2 Changed 14 years ago by wmoore

  • Description modified (diff)
  • Owner set to jmoore

The client simply gets this error...

  File "adminWorkflow.py", line 438, in doWorkflow
    runScript(session, scriptService, commandArgs["script"])
  File "adminWorkflow.py", line 201, in runScript
    params = scriptService.getParams(scriptId)
  File "/Users/will/Documents/workspace/Omero/dist/lib/python/omero_api_IScript_ice.py", line 138, in getParams
    return _M_omero.api.IScript._op_getParams.invoke(self, ((scriptID, ), _ctx))
omero.ResourceError: exception ::omero::ResourceError
{
    serverStackTrace = 
    serverExceptionClass = 
    message = No processor available.
}

comment:3 Changed 14 years ago by jmoore

  • Component changed from General to Scripting

"script serve user" is a shortcut for "script serve user=<my user id>" which means that only files belonging to that user id will be launched. Can you try the same test with "user=<other users id>"?

comment:4 Changed 14 years ago by jmoore

  • Resolution set to invalid
  • Status changed from new to closed

Will verified that this works with "user=<id>"

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

We're Hiring!