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

Config XML parsing should fail hard if an xpath is expect to match at most one node/string/int/boolean and multiple values are found

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.5, 6.0
    • None
    • None

    Description

      while reviewing some code i think i noticed that if there are multiple <indexConfig/> blocks in solrconfig.xml, one just "wins" and hte rest are ignored.

      this should be a hard failure situation, and we should have a "TestBadConfig" method to verify it.

      broadened goal of issue to fail if configuration contains multiple nodes/values for any option where only one value is expected.

      Attachments

        1. SOLR-4953.patch
          4 kB
          Chris M. Hostetter
        2. SOLR-4953.patch
          9 kB
          Chris M. Hostetter

        Issue Links

          Activity

            People

              hossman Chris M. Hostetter
              hossman Chris M. Hostetter
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: