Vamsee Yarlagadda created SOLR-6440:
---------------------------------------
Summary: Core status should throw an error if core doesn't exist
Key: SOLR-6440
URL: https://issues.apache.org/jira/browse/SOLR-6440
Project: Solr
Issue Type: Bug
Components: SearchComponents - other
Affects Versions: 5.0
Reporter: Vamsee Yarlagadda
Priority: Minor
Current version of Core STATUS returns an empty response if requested core
doesn't exist.
e.q:
http://localhost:8900/solr/admin/cores?action=STATUS&core=abc
{code}
<response>
<lst name="responseHeader">
<int name="status">0</int>
<int name="QTime">1</int>
</lst><lst name="initFailures"/>
<lst name="status">
<lst name="abc"/>
</lst>
</response>
{code}
Instead, it would be good to return an error message stating that the core
doesn't exist.
e.g
{code}
<response>
<lst name="responseHeader">
<int name="status">400</int>
<int name="QTime">27</int>
</lst>
<lst name="initFailures"/>
<lst name="error">
<str name="msg">Core [abc] does not exist</str>
<int name="code">400</int>
</lst>
</response>
{code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]