Task #2337 (closed)
BUG: bin/omero script replace
| 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)
If I use bin/omero script replace to replace a longer file with a shorter file, the first part of the longer file is replaced by the short file, and the rest remains.
See below. A file with last line
client.setOutput("Output_Message", rstring(ouputMessage))
was edited to remove a few characters and then uploaded to replace itself. The last few characters of the file are now repeated at the end.
wjm:dist will$ bin/omero -s localhost -u root script replace 32 ../examples/ScriptingService/Edit_Descriptions.py
Reconnected to session f064ddea-84cd-4de3-b560-f08818901175. Idle timeout: 10.0 min.
wjm:dist will$ bin/omero -s localhost -u root script launch file=32 Dataset_ID=1
Reconnected to session f064ddea-84cd-4de3-b560-f08818901175. Idle timeout: 10.0 min.
Job 20 ready
Waiting....
Callback received: FINISHED
*** start stderr ***
* File "./script", line 96
* client.setOutput("Output_Message", rstring(ouputMessage))ng(ouputMessage))
* ^
* SyntaxError: invalid syntax
*
*** end stderr ***
*** out parameters ***
*** done ***
wjm:dist will$
Change History (5)
comment:1 Changed 9 years ago by wmoore
- Description modified (diff)
- Owner set to jmoore
comment:2 Changed 9 years ago by jmoore
- Status changed from new to assigned
comment:3 Changed 9 years ago by jmoore
- Remaining Time set to 0
- Resolution set to fixed
- Status changed from assigned to closed
comment:4 Changed 9 years ago by jmoore
comment:5 Changed 9 years ago by jmoore
Note: See
TracTickets for help on using
tickets.
You may also have a look at Agilo extensions to the ticket.
(In [6900]) fix #2337 - Shortening files required truncate() method