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
Attachments
Issue Links
- is related to
-
SOLR-11551 Standardize response codes and success/failure determination for core-admin api calls
-
- Closed
-
-
SOLR-12482 Config API returns status 0 for failed operations
-
- Closed
-