NOTICE! This is a static HTML version of a legacy LOCI Software ticket.

LOCI projects are now located on GitHub. The Bio-Formats project can be found here.

Ticket #560 (closed defect: fixed)

Opened 2010-09-14T07:47:28-05:00

Last modified 2011-02-02T04:45:00-06:00

Fix multi-line description MetaMorph ND files

Reported by: callan Owned by: callan
Priority: minor Milestone:
Component: bio-formats Severity: minor
Keywords: Cc:
Blocked By: Blocking:


When a MetaMorph ND file has a multi-line description setId() fails with an exception:

java.lang.StringIndexOutOfBoundsException: String index out of range: -3
	at java.lang.String.substring(
	at loci.formats.FormatReader.setId(
	at loci.formats.ImageReader.setId(
	at com.glencoesoftware.importer.queue.UploadReactor.upload(

Change History

comment:1 Changed 2010-09-14T10:10:30-05:00 by callan

(In [6922]) Merging r6367 from Trunk. (See #560)

comment:2 Changed 2010-09-14T10:12:49-05:00 by callan

  • Status changed from new to assigned

Original solution was made in Trunk with r6367. This solution does not handle multi-line descriptions "properly" it just ignores lines without a comma separating the keys and values of the ND file. We should probably move to a regular expression based parsing approach.

comment:3 Changed 2010-09-14T10:13:23-05:00 by callan

  • Priority changed from major to minor
  • Severity changed from serious to minor

comment:4 Changed 2010-09-14T10:49:13-05:00 by callan

(In [6923]) Fixing infinite loop introduced by merging r6367 from Trunk. (See #560)

comment:5 Changed 2011-02-02T04:45:00-06:00 by curtis

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

moved to  ome:#4153