[ https://issues.apache.org/jira/browse/SOLR-10406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16017133#comment-16017133 ]
Cao Manh Dat commented on SOLR-10406: ------------------------------------- Here are result returned by solr with the patch Case 1 : For not exist apis {code:title=http://localhost:8983/v2/abc|borderStyle=solid} { "error": { "metadata": [ "error-class", "org.apache.solr.common.SolrException", "root-error-class", "org.apache.solr.common.SolrException" ], "msg": "Cannot find correspond api for the path : /abc", "code": 404 } } {code} With different wt {code:title=http://localhost:8983/v2/abc?wt=xml|borderStyle=solid} <response> <lst name="error"> <lst name="metadata"> <str name="error-class">org.apache.solr.common.SolrException</str> <str name="root-error-class">org.apache.solr.common.SolrException</str> </lst> <str name="msg">Cannot find correspond api for the path : /abc</str> <int name="code">404</int> </lst> </response> {code} Case 2 : For not valid request {code:title=request payload} {rebalance-leaders: {maxAtOnce: abc, maxWaitSeconds: xyz}} {code} {code:title=http://localhost:8983/v2/c/gettingstarted|borderStyle=solid} { "error": { "metadata": [ "error-class", "org.apache.solr.api.ApiBag$ExceptionWithErrObject", "root-error-class", "org.apache.solr.api.ApiBag$ExceptionWithErrObject" ], "errorMessages": [ { "rebalance-leaders": { "maxAtOnce": "abc", "maxWaitSeconds": "xyz" }, "errorMessages": [ "Value is not valid, expected one of: [INTEGER], found: String" ] } ], "msg": "Error in command payload", "code": 400 } } {code} > v2 API error messages list the URL request path as /solr/____v2/... when the > original path was /v2/... > ------------------------------------------------------------------------------------------------------ > > Key: SOLR-10406 > URL: https://issues.apache.org/jira/browse/SOLR-10406 > Project: Solr > Issue Type: Bug > Security Level: Public(Default Security Level. Issues are Public) > Components: v2 API > Reporter: Steve Rowe > Priority: Minor > Attachments: SOLR-10406.patch > > > E.g. attempting introspect on {{/v2/c/.system/blob}} will fail if the > {{.system}} collection has not yet been CREATE'd - after {{bin/solr start -e > cloud -noprompt}}: > {noformat} > $ curl "http://localhost:8983/v2/c/.system/blob/_introspect?indent=on" > <html> > <head> > <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> > <title>Error 404 Not Found</title> > </head> > <body><h2>HTTP ERROR 404</h2> > <p>Problem accessing /solr/____v2/c/.system/blob/_introspect. Reason: > <pre> Not Found</pre></p> > </body> > </html> > {noformat} -- 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