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: |
Description
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(String.java:1937) at loci.formats.in.MetamorphReader.initFile(MetamorphReader.java:286) at loci.formats.FormatReader.setId(FormatReader.java:901) at loci.formats.ImageReader.setId(ImageReader.java:588) at com.glencoesoftware.importer.queue.UploadReactor.upload(UploadReactor.java:458) at com.glencoesoftware.importer.queue.UploadReactor.run(UploadReactor.java:272)
Change History
comment:1 Changed 2010-09-14T10:10:30-05:00 by callan
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
(In [6922]) Merging r6367 from Trunk. (See #560)