Solr
  1. Solr
  2. SOLR-841

DataImportHandler uses configuration without checking for existence of required attributes

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor 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" .../>

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

        Activity

        Hide
        Noble Paul added a comment -

        on any field 'column' is a required attribute. name is optional. If name is absent it is assumed to be same as column

        Show
        Noble Paul added a comment - on any field 'column' is a required attribute. name is optional. If name is absent it is assumed to be same as column
        Hide
        Shalin Shekhar Mangar added a comment -

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

        Show
        Shalin Shekhar Mangar added a comment - With this patch, DataImportHandler throws an exception if a field does not have a column attribute.
        Hide
        Shalin Shekhar Mangar added a comment -

        Committed revision 725635.

        Thanks for reporting this Michael!

        Show
        Shalin Shekhar Mangar added a comment - Committed revision 725635. Thanks for reporting this Michael!
        Hide
        Grant Ingersoll added a comment -

        Bulk close for Solr 1.4

        Show
        Grant Ingersoll added a comment - Bulk close for Solr 1.4

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development