Task #2313 (closed)
Opened 9 years ago
Closed 9 years ago
BUG: editScript(file, text)
| Reported by: | wmoore | Owned by: | jamoore |
|---|---|---|---|
| Priority: | minor | Milestone: | OMERO-Beta4.2 |
| Component: | General | Version: | n.a. |
| Keywords: | n.a. | Cc: | |
| Resources: | n.a. | Referenced By: | n.a. |
| References: | n.a. | Remaining Time: | 0.0d |
| Sprint: | 2010-04-30 (8) |
Description (last modified by wmoore)
java.io.Exception.
Test committed below
wjm:OmeroPy will$ PYTHONPATH=$PYTHONPATH:.:test:build/lib ICE_CONFIG=/Users/will/Documents/workspace/Omero/etc/ice.config python test/integration/scripts.py TestScripts.testEditScript
E
======================================================================
ERROR: testEditScript (__main__.TestScripts)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test/integration/scripts.py", line 142, in testEditScript
scriptService.editScript(scriptFile, script)
File "/Users/will/Documents/workspace/Omero/dist/lib/python/omero_api_IScript_ice.py", line 125, in editScript
return _M_omero.api.IScript._op_editScript.invoke(self, ((fileObject, scriptText), _ctx))
InternalException: exception ::omero::InternalException
{
serverStackTrace = java.io.IOException: File '/Users/will/Documents/workspace/Omero/dist/./lib/scripts/test/edit' exists but is a directory
at org.apache.commons.io.FileUtils.openOutputStream(FileUtils.java:166)
at org.apache.commons.io.FileUtils.writeStringToFile(FileUtils.java:1250)
at org.apache.commons.io.FileUtils.writeStringToFile(FileUtils.java:1265)
at ome.services.scripts.ScriptRepoHelper.write(ScriptRepoHelper.java:349)
at ome.services.blitz.impl.ScriptI$5.call(ScriptI.java:211)
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.editScript_async(ScriptI.java:201)
at omero.api._IScriptTie.editScript_async(_IScriptTie.java:71)
at omero.api._IScriptDisp.___editScript(_IScriptDisp.java:298)
at omero.api._IScriptDisp.__dispatch(_IScriptDisp.java:457)
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 = java.io.IOException
message = File '/Users/will/Documents/workspace/Omero/dist/./lib/scripts/test/edit' exists but is a directory
}
Change History (4)
comment:1 Changed 9 years ago by wmoore
comment:2 Changed 9 years ago by wmoore
- Description modified (diff)
- Owner set to jmoore
comment:3 Changed 9 years ago by jmoore
- Status changed from new to assigned
comment:4 Changed 9 years ago by jmoore
- Remaining Time set to 0
- Resolution set to fixed
- Status changed from assigned to closed
Note: See
TracTickets for help on using
tickets.
You may also have a look at Agilo extensions to the ticket.
(In [6828]) Test for editScript(file, text). See #2313