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

Schema API always has status 0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 7.3, 8.0
    • None
    • None

    Description

      Schema API failures always return status=0.

      Consumers should be able to detect failure using normal mechanisms (i.e. status != 0) rather than having to parse the response for "errors". Right now if I attempt to add-field an already existing field, I get:

      {responseHeader={status=0,QTime=XXX},errors=[{add-field={name=YYY, ...}, errorMessages=[Field 'YYY' already exists.]}]}
      

      Attachments

        1. SOLR-11631.patch
          6 kB
          Steven Rowe
        2. SOLR-11631.patch
          5 kB
          Noble Paul
        3. SOLR-11631.patch
          21 kB
          Steven Rowe

        Issue Links

          Activity

            People

              sarowe Steven Rowe
              sarowe Steven Rowe
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: