Issue 15514
Downloads of 0 records over the API fail during copy and zip
15514
Reporter: omeyn
Assignee: fmendez
Type: Bug
Summary: Downloads of 0 records over the API fail during copy and zip
Priority: Critical
Resolution: Fixed
Status: Resolved
Created: 2014-04-11 12:03:03.621
Updated: 2014-04-15 12:38:37.279
Resolved: 2014-04-15 12:38:37.246
Description: Attempting to do a download of 0 records causes oozie workflow to fail at copy and zip with error message "can't find table tmp_. This can't be tested in the portal because we hide the Download button for 0 search results.
Expected behaviour: download succeeds as normal but with an empty occurrence.txt file]]>
Author: fmendez@gbif.org
Created: 2014-04-15 12:38:37.277
Updated: 2014-04-15 12:38:37.277
Downloads containing 0 records do not fail, a zip file without data files is created, it will only contain meta.xml and metadata.xml.
https://github.com/gbif/occurrence/commit/24606750e9024d86e1ecd681279b093a1efdb298