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

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.5, 6.0
    • Component/s: None
    • Labels:
      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
          Hoss Man
        2. SOLR-4953.patch
          9 kB
          Hoss Man

          Issue Links

            Activity

              People

              • Assignee:
                hossman Hoss Man
                Reporter:
                hossman Hoss Man
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: