[
https://issues.apache.org/jira/browse/SOLR-8219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14978293#comment-14978293
]
Christine Poerschke commented on SOLR-8219:
-------------------------------------------
Hi Sergey, thanks for reporting your discovery. I wonder if in addition to
{{wt=json}} and {{wt=xml}} you could also compare 4.5.3 vs. 5.3 for some of the
other query response writers, e.g. the default response writers in
{{SolrCore.java}} ~lines 2170-2188 and share your findings?
>From a cursory curious look around (on trunk) I see for example that
>{{JSONResponseWriter.java}} declares and uses a {{CONTENT_TYPE_JSON_UTF8}}
>constant but {{PythonResponseWriter.java}} and {{RubyResponseWriter.java}} for
>example declare {{CONTENT_TYPE_PYTHON_ASCII}} and {{CONTENT_TYPE_RUBY_UTF8}}
>constants respectively but they are never used (based on git grep).
> incorrect Content-type in Solr 5.3 for select handler
> -----------------------------------------------------
>
> Key: SOLR-8219
> URL: https://issues.apache.org/jira/browse/SOLR-8219
> Project: Solr
> Issue Type: Bug
> Components: clients - java
> Affects Versions: 5.3
> Reporter: Sergey Krasnovsky
>
> When response format set to json (wt=json), the response content-type is
> text/plain ( should be text/json).
> Here is comparison between Solr 4.5.3 and Solr 5.3 - Content-type changed in
> the response:
> Solr 4.5.3
> http://localhost:62168/solr/mycore/select?q=OrderNumber:1234567890&wt=json
> -- response --
> 200 OK
> Server: Apache-Coyote/1.1
> Content-Type: application/json;charset=UTF-8
> Transfer-Encoding: chunked
> Date: Tue, 27 Oct 2015 21:38:32 GMT
> {"responseHeader":{"status":0,"QTime":1,"params":{"q":"OrderNumber:1234567890","wt":"json"}},"response":{"numFound":1,"start":0,"docs":.......
> Solr 5.3:
> GET http://localhost:9091/solr/mycore/select?q=OrderNumber:1234567890&wt=json
> -- response --
> 200 OK
> Content-Type: text/plain; charset=UTF-8
> Transfer-Encoding: chunked
> {"responseHeader":{"status":0,"QTime":1,"params":{"q":"OrderNumber:1234567890","wt":"json"}},"response":{"numFound":1,"start":0,"docs":............
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]