[ 
https://issues.apache.org/jira/browse/SOLR-10711?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16016715#comment-16016715
 ] 

Jan Høydahl commented on SOLR-10711:
------------------------------------

These paths work:
{code}
http://localhost:8983/v2/cores
http://localhost:8983/v2/node/system
http://localhost:8983/v2/cluster/_introspect (but /v2/cluster does not work)
{code}

These do not work:
{code}
http://localhost:8983/v2
http://localhost:8983/v2/_introspect
http://localhost:8983/v2/node
http://localhost:8983/v2/cluster
http://localhost:8983/v2/c             #as expected
{code}

I think it is not a serious bug that {{/v2}} crashes, as it is not documented 
and has not {{_introspect}}. It seems somehow to be an alias for {{/v2/c}}. 
That should probably be fixed to instead be some top-level help for the API?

> Solr V2 API should work on standalone nodes
> -------------------------------------------
>
>                 Key: SOLR-10711
>                 URL: https://issues.apache.org/jira/browse/SOLR-10711
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: v2 API
>    Affects Versions: 6.5
>            Reporter: Jan Høydahl
>             Fix For: 6.6
>
>
> See this discussion
> https://lists.apache.org/thread.html/86d745383fb5975b57a42929df0c1734c686c3458b48b32caf7044f7@%3Cdev.lucene.apache.org%3E
> h3. Reproduce
> {code}
> $ bin/solr start
> $ curl localhost:8983/v2
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
> <title>Error 400 
> {metadata={error-class=org.apache.solr.common.SolrException,root-error-class=org.apache.solr.common.SolrException},msg=Invalid
>  request. collections can be accessed only in SolrCloud mode,code=400}</title>
> </head>
> <body><h2>HTTP ERROR 400</h2>
> <p>Problem accessing /solr/____v2. Reason:
> <pre>    
> {metadata={error-class=org.apache.solr.common.SolrException,root-error-class=org.apache.solr.common.SolrException},msg=Invalid
>  request. collections can be accessed only in SolrCloud 
> mode,code=400}</pre></p>
> </body>
> </html>
> {code}
> h3. It works in cloud mode
> {code}
> $ bin/solr start -c
> $ curl localhost:8983/v2
> {"responseHeader":{"status":0,"QTime":29},"collections":[]}
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to