Issue 16246

dwca-reader fails to open archive

16246
Reporter: tuco
Assignee: trobertson
Type: Bug
Summary: dwca-reader fails to open archive
Priority: Major
Resolution: Fixed
Status: Closed
Created: 2014-08-18 12:28:30.852
Updated: 2014-08-21 16:00:16.558
Resolved: 2014-08-21 16:00:16.53
        
Description: Darwin Core Archives produced with IPT version 2.0.5-r4398-security-update-1 and having an extension file within them fail to open using openArchive methods with or without a temp directory. The reason is that the archives contain the file "\meta.xml, so the archive reader does not find the expected meta.xml file and, seeing more that one file in the directory, gives the exception
UnsupportedArchiveException The archive given is a folder with more or less than 1 data files having a txt or csv suffix  org.gbif.dwc.text.ArchiveFactory.openArchive (ArchiveFactory.java:317)

For an example problem archive and specific details of the context of failure in VertNet with debugging details, see https://github.com/VertNet/gulo/issues/116.]]>
    


Author: trobertson@gbif.org
Created: 2014-08-21 13:28:30.272
Updated: 2014-08-21 13:28:30.272
        
I believe this might already be fixed in the DwC-A reader.  If you test before I can get to this, please update this issue confirming / closing it

    


Author: trobertson@gbif.org
Created: 2014-08-21 16:00:01.77
Updated: 2014-08-21 16:00:01.77
        
Apparently not, but fixed with https://github.com/gbif/dwca-reader/commit/4c27248c125b38c1d4af0137693c65963ae4bc56

    


Author: trobertson@gbif.org
Created: 2014-08-21 16:00:16.556
Updated: 2014-08-21 16:00:16.556
        
With this gem of a hack
https://github.com/gbif/dwca-reader/commit/4c27248c125b38c1d4af0137693c65963ae4bc56