Jack Krupansky created SOLR-5181:
------------------------------------

             Summary: Core admin CREATE with missing solrconfig file in 4.5 
gives unhelpful too-terse message compared to 4.4
                 Key: SOLR-5181
                 URL: https://issues.apache.org/jira/browse/SOLR-5181
             Project: Solr
          Issue Type: Bug
          Components: multicore
    Affects Versions: 4.5
            Reporter: Jack Krupansky
            Priority: Minor


In branch_4x, a core admin CREATE request with a missing solrconfig.xml file 
gives a too-short message that does not indicate what the real problem was. In 
4.4, the message included the cause.

The request:
{code}
  curl 
"http://localhost:8983/solr/admin/cores?action=CREATE&name=collection2&indent=true";
{code}

The response using a recent nightly build of 4.5:

{code}
<?xml version="1.0" encoding="UTF-8"?>
<response>

<lst name="responseHeader">
  <int name="status">400</int>
  <int name="QTime">35</int>
</lst>
<lst name="error">
  <str name="msg">Error CREATEing SolrCore 'collection2': Unable to create 
core: collection2</str>
  <int name="code">400</int>
</lst>
</response>
{code}

But that doesn't indicate any reason for why the core could not be created.

The response using 4.4:
{code}
<?xml version="1.0" encoding="UTF-8"?>
<response>

<lst name="responseHeader">
  <int name="status">400</int>
  <int name="QTime">16</int>
</lst>
<lst name="error">
  <str name="msg">Error CREATEing SolrCore 'collection2': Unable to create 
core: collection2 Caused by: Can't find resource 'solrconfig.xml' in classpath 
or 'solr\collection2\conf/', 
cwd=C:\cygwin\home\projects\solr-4.4.0\solr-4.4.0\example-test</str>
  <int name="code">400</int>
</lst>
</response>
{code}

That tells me exactly why.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to