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

Uwe Schindler edited comment on SOLR-5940 at 6/11/14 4:16 PM:
--------------------------------------------------------------

If you are reading messages from a HTTP server, the default encoding is 
ISO-8859-1 (according to HTTP/1.1 standards). Only if the server returns a 
different charset in its Content-Type header, it must be changed.

>From HTTP spec: 
bq. The "charset" parameter is used with some media types to define the 
character set (section 3.4) of the data. When no explicit charset parameter is 
provided by the sender, media subtypes of the "text" type are defined to have a 
default charset value of "ISO-8859-1" when received via HTTP. Data in character 
sets other than "ISO-8859-1" or its subsets MUST be labeled with an appropriate 
charset value. See section 3.4.1 for compatibility problems.


was (Author: thetaphi):
If you are reading messages from a HTTP server, the default encoding is 
ISO-8859-1 (according to HTTP/1.1 standards). Only if the server returns a 
different charset in its Content-Type header, it must be changed.

> Make post.jar report back detailed error in case of 400 responses
> -----------------------------------------------------------------
>
>                 Key: SOLR-5940
>                 URL: https://issues.apache.org/jira/browse/SOLR-5940
>             Project: Solr
>          Issue Type: Improvement
>          Components: scripts and tools
>    Affects Versions: 4.7
>            Reporter: Sameer Maggon
>            Assignee: Shalin Shekhar Mangar
>         Attachments: solr-5940.patch, solr-5940.patch
>
>
> Currently post.jar does not print detailed error message that is encountered 
> during indexing. In certain use cases, it's helpful to see the error message 
> so that clients can take appropriate actions.
> In 4.7, here's what gets shown if there is an error during indexing:
> SimplePostTool: WARNING: Solr returned an error #400 Bad Request
> SimplePostTool: WARNING: IOException while reading response: 
> java.io.IOException: Server returned HTTP response code: 400 for URL: 
> http://localhost:8983/solr/update
> It would be helpful to print out the "msg" that is returned from Solr.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to