Issue 13445

Downloads break when filters are only Location

13445
Reporter: omeyn
Assignee: fmendez
Type: Bug
Summary: Downloads break when filters are only Location
Priority: Critical
Resolution: Fixed
Status: Closed
Created: 2013-07-03 10:43:40.251
Updated: 2013-12-17 15:16:52.846
Resolved: 2013-07-24 13:59:40.563
        
Description: If the only selected occurrence search filters are Location (ie polygons or rectangles) the download will fail at the occurrence_count step of the oozie workflow (the size check query to solr). If a single Location filter is used the config for the step looks like this:


  ${jobtracker}
  ${namenode}
  conf/hive-default.xml
  org.gbif.occurrencestore.download.oozie.OccurrenceCount
  ${solr_query}
  


and if 2 filters are used it looks like this:


  c1n10.gbif.org:8021
  hdfs://c1n8.gbif.org:8020
  conf/hive-default.xml
  org.gbif.occurrencestore.download.oozie.OccurrenceCount
  (() OR ())
  


When a Location filter is used together with another filter (e.g. Scientific Name) the download will succeed but the Location portion of the query to solr count will not be populated. E.g.:


  c1n10.gbif.org:8021
  hdfs://c1n8.gbif.org:8020
  conf/hive-default.xml
  org.gbif.occurrencestore.download.oozie.OccurrenceCount
  (((nub_key:5231190 OR kingdom_key:5231190 OR phylum_key:5231190 OR class_key:5231190 OR order_key:5231190 OR family_key:5231190 OR genus_key:5231190 OR species_key:5231190)) AND ())
  


It seems the solr query isn't being populated when the download button is pressed.

This DOES NOT affect the actual downloaded file - there the location filters are correctly applied]]>
    


Author: fmendez@gbif.org
Created: 2013-07-24 13:59:40.594
Updated: 2013-07-24 13:59:40.594
        
http://code.google.com/p/gbif-occurrencestore/source/detail?r=2080
http://code.google.com/p/gbif-occurrencestore/source/detail?r=2079
http://code.google.com/p/gbif-portal/source/detail?r=1733