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

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

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 14 years ago by wmoore

  • Description modified (diff)
  • Owner set to jmoore

comment:2 Changed 14 years ago by jmoore

  • Status changed from new to assigned

comment:3 Changed 14 years ago by jmoore

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

(In [6900]) fix #2337 - Shortening files required truncate() method

comment:4 Changed 14 years ago by jmoore

(In [6904]) see #2337 - Adding methdos to RepoRawFileStoreI

comment:5 Changed 14 years ago by jmoore

(In [6938]) see #2337 - more truncating necessary

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

We're Hiring!