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

Better validation of fields and dynamic fields for Schema API

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.3, 7.0
    • Component/s: Schema and Analysis
    • Security Level: Public (Default Security Level. Issues are Public)
    • Labels:
      None

      Description

      Schema REST API needs better validation before doing changes.

      • It should not be allowed to delete uniqueKey (also handled in SOLR-9349)
      • When adding a dynamic field the API should test that it begins or ends with *. Today the change succeeds, but you get errors later

      These are two known cases. We should harden validation across the board for all known schema requirements.

        Attachments

        1. SOLR-9411-part2.patch
          4 kB
          Steve Rowe
        2. SOLR-9411-part2.patch
          5 kB
          Steve Rowe
        3. SOLR-9411.patch
          3 kB
          Jan Høydahl
        4. SOLR-9411.patch
          6 kB
          Jan Høydahl

          Issue Links

            Activity

              People

              • Assignee:
                steve_rowe Steve Rowe
                Reporter:
                janhoy Jan Høydahl
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: