[ 
https://issues.apache.org/jira/browse/SOLR-841?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Shalin Shekhar Mangar updated SOLR-841:
---------------------------------------

    Attachment: SOLR-841.patch

With this patch, DataImportHandler throws an exception if a field does not have 
a column attribute.

> DataImportHandler uses configuration without checking for existence of 
> required attributes
> ------------------------------------------------------------------------------------------
>
>                 Key: SOLR-841
>                 URL: https://issues.apache.org/jira/browse/SOLR-841
>             Project: Solr
>          Issue Type: Bug
>          Components: contrib - DataImportHandler
>    Affects Versions: 1.4
>         Environment: Tomcat 6, jdk 6u10
>            Reporter: Michael Henson
>            Priority: Minor
>         Attachments: SOLR-841.patch
>
>
> The DataImportHandler's  XPathEntityProcessor throws a NullPointerException 
> when it tries to process a row from an XML data source during a 
> "full-import", both in the dataimport.jsp debugger and when started as a 
> normal request. The null pointer is thrown when a <field> tag in the 
> <fields><field ... /> ... </fields> section of data-config.xml has no 
> "column" attribute.
> Example:
> <field name="entity_id" ... /> which should have been <field 
> column="entity_id" .../>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to