Ticket #608 (closed defect: fixed)

Opened 9 years ago

Last modified 9 years ago

Zip file URLs are not supported

Reported by: melissa Owned by: melissa
Priority: major Milestone: bio-formats-4.3
Component: bio-formats Severity: serious
Keywords: Cc: acardona@…, curtis
Blocked By: Blocking:

Description

For example:

  showinf http://imagej.nih.gov/ij/images/flybrain.zip

produces this lovely exception:

Exception in thread "main" java.util.zip.ZipException: error in opening zip file
	at java.util.zip.ZipFile.open(Native Method)
	at java.util.zip.ZipFile.<init>(ZipFile.java:114)
	at java.util.zip.ZipFile.<init>(ZipFile.java:75)
	at loci.formats.in.ZipReader.initFile(ZipReader.java:103)
	at loci.formats.FormatReader.setId(FormatReader.java:1058)
	at loci.formats.ImageReader.setId(ImageReader.java:650)
	at loci.formats.ReaderWrapper.setId(ReaderWrapper.java:480)
	at loci.formats.tools.ImageInfo.testRead(ImageInfo.java:919)
	at loci.formats.tools.ImageInfo.main(ImageInfo.java:948)

It should be sufficient to use java.util.zip.ZipInputStream instead of java.util.zip.ZipFile within ZipReader and ZipHandle.

Change History

comment:1 Changed 9 years ago by melissa

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

(In [7460]) Updated ZipHandle and ZipReader to use a ZipInputStream instead of a ZipFile. Closes #608.

Note: See TracTickets for help on using tickets.