Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
Description
If I do a wrong export query like this we get back http code 200
~/solr-7.4.0$ curl -v "http://localhost:8983/solr/gettingstarted/export/?q=*:*" * Trying ::1... * TCP_NODELAY set * Connected to localhost (::1) port 8983 (#0) > GET /solr/gettingstarted/export/?q=*:* HTTP/1.1 > Host: localhost:8983 > User-Agent: curl/7.54.0 > Accept: */* > < HTTP/1.1 200 OK < Content-Type: json < Transfer-Encoding: chunked < { "responseHeader":{"status":400}, "response":{ "numFound":0, * Connection #0 to host localhost left intact "docs":[{"EXCEPTION":"org.apache.solr.search.SyntaxError: No sort criteria was provided."}]}}
For reference if I do a bad solr query like this we get back a HTTP 400
~/solr-7.4.0$ curl -v http://localhost:8983/solr/gettingstarted/query/?q=a:a * Trying ::1... * TCP_NODELAY set * Connected to localhost (::1) port 8983 (#0) > GET /solr/gettingstarted/query/?q=a:a HTTP/1.1 > Host: localhost:8983 > User-Agent: curl/7.54.0 > Accept: */* > < HTTP/1.1 400 Bad Request < Cache-Control: no-cache, no-store < Pragma: no-cache < Expires: Sat, 01 Jan 2000 01:00:00 GMT < Last-Modified: Mon, 09 Jul 2018 13:12:51 GMT < ETag: "1647f2c5e7e" < Content-Type: text/plain;charset=utf-8 < Content-Length: 317 < { "responseHeader":{ "zkConnected":true, "status":400, "QTime":1, "params":{ "q":"a:a"}}, "error":{ "metadata":[ "error-class","org.apache.solr.common.SolrException", "root-error-class","org.apache.solr.common.SolrException"], "msg":"undefined field a", "code":400}} * Connection #0 to host localhost left intact