Menu

#5 Indexer fails if inventory includes null

open
gbifAdmin (2)
3
2004-09-07
2004-09-07
No

When SpecimenObservationIndexer.java processes
inventory records, it fails if the first name returned
is the empty string. E.g. the Kansas University
provider returns the following for a ScientificName
inventory of the KUPlants resource:

<?xml version='1.0' encoding='utf-8' ?>
<response
xmlns='http://digir.net/schema/protocol/2003/1.0'>
<header>
<version>$Revision: 1.10 $</version>
<sendTime>07-09-2004 05:57:26-0500</sendTime>
<source
resource="KUPlants">http://speciesanalyst.net/digir/DiGIR.php</source>
<destination>129.237.201.18</destination>
</header>
<content
xmlns:dwc='http://digir.net/schema/conceptual/darwin/2003/1.0'
xmlns:xsd='http://www.w3.org/2001/XMLSchema'
xmlns:xsi='http://www.w3.org/2001/XMLSchema
-instance'>
<record><dwc:ScientificName
count='517'></dwc:ScientificName></record>
<record><dwc:ScientificName count='1'>Abies
amabilis</dwc:ScientificName></record>

This leads to the indexer issuing a detail (i.e.
search) request for all records with a ScientificName
greater than or equal to "" and less than some other
value. This request fails.

If the resource includes records without any value for
the inventory concept, the indexer should skip them.

I have assigned this to MESM since it needs to be fixed
in the indexer, which is currently under redevelopment.

Discussion

MongoDB Logo MongoDB