[ 
https://issues.apache.org/jira/browse/SOLR-10406?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Cao Manh Dat updated SOLR-10406:
--------------------------------
    Attachment: SOLR-10406.patch

Updated patch for this ticket. With this patch
- when request v2 api and meet some error, solrj will return a NamedList 
instead of throw an Exception.
- v2 api will always contain responseHeader in reponse
- test for javabin and xml parser in case of exception

> 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, 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

Reply via email to