Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-841

DataImportHandler uses configuration without checking for existence of required attributes

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: 1.4
    • Labels:
      None
    • Environment:

      Tomcat 6, jdk 6u10

      Description

      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" .../>

        Attachments

        1. SOLR-841.patch
          0.9 kB
          Shalin Shekhar Mangar

          Activity

            People

            • Assignee:
              shalinmangar Shalin Shekhar Mangar
              Reporter:
              mhenson Michael Henson
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: