[jira] Created: (SOLR-1595) StreamingUpdateSolrServer doesn't specifying UTF-8 when creating OutputStreamWriter

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (SOLR-1595) StreamingUpdateSolrServer doesn't specifying UTF-8 when creating OutputStreamWriter

Tim Allison (Jira)
StreamingUpdateSolrServer doesn't specifying UTF-8 when creating OutputStreamWriter
-----------------------------------------------------------------------------------

                 Key: SOLR-1595
                 URL: https://issues.apache.org/jira/browse/SOLR-1595
             Project: Solr
          Issue Type: Bug
          Components: clients - java
    Affects Versions: 1.4, 1.3
            Reporter: Hoss Man


StreamingUpdateSolrServer constructs an OutputStreamWriter w/o specifying that it should use UTF-8 ... as a result the JVMs default encoding is used even though the request includes a Content-Type header of "text/xml; charset=utf-8" via CLientUtisl.TEXT_XML.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (SOLR-1595) StreamingUpdateSolrServer doesn't specifying UTF-8 when creating OutputStreamWriter

Tim Allison (Jira)

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

Hoss Man commented on SOLR-1595:
--------------------------------

first noted here...
http://old.nabble.com/UTF-8-Character-Set-not-specifed-on-OutputStreamWriter-in-StreamingUpdateSolrServer-td26400932.html#a26400932

> StreamingUpdateSolrServer doesn't specifying UTF-8 when creating OutputStreamWriter
> -----------------------------------------------------------------------------------
>
>                 Key: SOLR-1595
>                 URL: https://issues.apache.org/jira/browse/SOLR-1595
>             Project: Solr
>          Issue Type: Bug
>          Components: clients - java
>    Affects Versions: 1.3, 1.4
>            Reporter: Hoss Man
>
> StreamingUpdateSolrServer constructs an OutputStreamWriter w/o specifying that it should use UTF-8 ... as a result the JVMs default encoding is used even though the request includes a Content-Type header of "text/xml; charset=utf-8" via CLientUtisl.TEXT_XML.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (SOLR-1595) StreamingUpdateSolrServer doesn't specifying UTF-8 when creating OutputStreamWriter

Tim Allison (Jira)
In reply to this post by Tim Allison (Jira)

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

Yonik Seeley updated SOLR-1595:
-------------------------------

    Attachment: SOLR-1595.patch

Here's the patch.

> StreamingUpdateSolrServer doesn't specifying UTF-8 when creating OutputStreamWriter
> -----------------------------------------------------------------------------------
>
>                 Key: SOLR-1595
>                 URL: https://issues.apache.org/jira/browse/SOLR-1595
>             Project: Solr
>          Issue Type: Bug
>          Components: clients - java
>    Affects Versions: 1.3, 1.4
>            Reporter: Hoss Man
>         Attachments: SOLR-1595.patch
>
>
> StreamingUpdateSolrServer constructs an OutputStreamWriter w/o specifying that it should use UTF-8 ... as a result the JVMs default encoding is used even though the request includes a Content-Type header of "text/xml; charset=utf-8" via CLientUtisl.TEXT_XML.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (SOLR-1595) StreamingUpdateSolrServer doesn't specifying UTF-8 when creating OutputStreamWriter

Tim Allison (Jira)
In reply to this post by Tim Allison (Jira)

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

Yonik Seeley commented on SOLR-1595:
------------------------------------

The included test fails (w/o the rest of the patch) with the following command line:
{code}
ant test -Dargs="-Dfile.encoding=ISO8859_1" -Dtestcase=SolrExampleStreamingTest
{code}

> StreamingUpdateSolrServer doesn't specifying UTF-8 when creating OutputStreamWriter
> -----------------------------------------------------------------------------------
>
>                 Key: SOLR-1595
>                 URL: https://issues.apache.org/jira/browse/SOLR-1595
>             Project: Solr
>          Issue Type: Bug
>          Components: clients - java
>    Affects Versions: 1.3, 1.4
>            Reporter: Hoss Man
>         Attachments: SOLR-1595.patch
>
>
> StreamingUpdateSolrServer constructs an OutputStreamWriter w/o specifying that it should use UTF-8 ... as a result the JVMs default encoding is used even though the request includes a Content-Type header of "text/xml; charset=utf-8" via CLientUtisl.TEXT_XML.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Resolved: (SOLR-1595) StreamingUpdateSolrServer doesn't specifying UTF-8 when creating OutputStreamWriter

Tim Allison (Jira)
In reply to this post by Tim Allison (Jira)

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

Yonik Seeley resolved SOLR-1595.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 1.5

committed.

> StreamingUpdateSolrServer doesn't specifying UTF-8 when creating OutputStreamWriter
> -----------------------------------------------------------------------------------
>
>                 Key: SOLR-1595
>                 URL: https://issues.apache.org/jira/browse/SOLR-1595
>             Project: Solr
>          Issue Type: Bug
>          Components: clients - java
>    Affects Versions: 1.3, 1.4
>            Reporter: Hoss Man
>             Fix For: 1.5
>
>         Attachments: SOLR-1595.patch
>
>
> StreamingUpdateSolrServer constructs an OutputStreamWriter w/o specifying that it should use UTF-8 ... as a result the JVMs default encoding is used even though the request includes a Content-Type header of "text/xml; charset=utf-8" via CLientUtisl.TEXT_XML.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.