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

Uwe Schindler commented on SOLR-10711:
--------------------------------------

Hi,
I asked about this on the mailing list, because it was a typical "first user 
experience". The release notes stated that the new API is available on {{/v2}} 
and that it is "self-decribing". So the first thing you try is to go to the 
root path with your REST client (in simplest case a browser). So it is a bad 
user experience, and IMHO it should be fixed in 6.6 (and possibly in the 6.5 
series, too).

In addition, such error messages should come out as JSON, not in HTML. IMHO, 
below /v2, the Jetty error handler should be customized to retun a machine 
readable error message. I know that ES is only returning JSON!

> Solr V2 API should work on standalone nodes
> -------------------------------------------
>
>                 Key: SOLR-10711
>                 URL: https://issues.apache.org/jira/browse/SOLR-10711
>             Project: Solr
>          Issue Type: Sub-task
>      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