[ https://issues.apache.org/jira/browse/SOLR-10711?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16018303#comment-16018303 ]
Cao Manh Dat edited comment on SOLR-10711 at 5/20/17 3:58 AM: -------------------------------------------------------------- A patch for this ticket, so instead of redirect "/v2" -> "/v2/collections". We will return a static message {code} { "responseHeader": { "status": 0, "QTime": 0 }, "documentation": "https://cwiki.apache.org/confluence/display/solr/v2+API", "description": "V2 API root path" } {code} If there're no objection, I will commit this patch to master, and do another patch for branch_6x because the tests written here depends on SOLR-10431 was (Author: caomanhdat): A patch for this ticket, so instead of redirect "/v2" -> "/v2/collections". We will return a static message {code} { "responseHeader": { "status": 0, "QTime": 0 }, "documentation": "https://cwiki.apache.org/confluence/display/solr/v2+API", "description": "V2 API root path" } {code} > 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 > > Attachments: SOLR-10711.patch > > > 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: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org