lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Dietrich (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-4487) SolrException usage in solrj client code can't handle all possible http error codes returned by servers -- example "413 Request Entity Too Large"
Date Wed, 10 Apr 2013 12:54:17 GMT

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

Alexander Dietrich commented on SOLR-4487:
------------------------------------------

Sounds good to me. In addition, SolrException.code() could use some documentation, so people
know that they're getting an HTTP status code (or 0).
                
> SolrException usage in solrj client code can't handle all possible http error codes returned
by servers -- example "413 Request Entity Too Large"
> -------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-4487
>                 URL: https://issues.apache.org/jira/browse/SOLR-4487
>             Project: Solr
>          Issue Type: Improvement
>          Components: clients - java
>    Affects Versions: 4.0
>            Reporter: Alexander Dietrich
>            Assignee: Hoss Man
>
> Solr responds to excessively large queries with a 413 status code, but HttpSolrServer.request()
loses this information when it tries to look up the code in SolrException.ErrorCode, resulting
in a status code 0 in the thrown exception.
> Being able to see this status code would be helpful.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message