[
https://issues.apache.org/jira/browse/SOLR-5272?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Cassandra Targett closed SOLR-5272.
-----------------------------------
> Schema REST API not returning correct Content-Type for JSON
> -----------------------------------------------------------
>
> Key: SOLR-5272
> URL: https://issues.apache.org/jira/browse/SOLR-5272
> Project: Solr
> Issue Type: Bug
> Components: Response Writers
> Affects Versions: 4.4
> Reporter: David Arthur
>
> The new Schema REST API is not returning application/json as the Content-Type
> when wt=json (or when wt is omitted).
> Examples:
> $ curl -s -D - http://localhost:8888/solr/collection1/schema/fields -o
> /dev/null
> {code}
> HTTP/1.1 200 OK
> Content-Type: text/plain; charset=UTF-8
> Date: Wed, 25 Sep 2013 17:29:24 GMT
> Accept-Ranges: bytes
> Transfer-Encoding: chunked
> {code}
> $ curl -s -D - http://localhost:8888/solr/collection1/schema/fields?wt=json
> -o /dev/null
> {code}
> HTTP/1.1 200 OK
> Content-Type: text/plain; charset=UTF-8
> Date: Wed, 25 Sep 2013 17:30:59 GMT
> Accept-Ranges: bytes
> Transfer-Encoding: chunked
> {code}
> $ curl -s -D - http://localhost:8888/solr/collection1/schema/fields?wt=xml -o
> /dev/null
> {code}
> HTTP/1.1 200 OK
> Content-Type: application/xml; charset=UTF-8
> Date: Wed, 25 Sep 2013 17:31:13 GMT
> Accept-Ranges: bytes
> Transfer-Encoding: chunked
> {code}
> $ curl -s -D -
> http://localhost:8888/solr/collection1/schema/fields?wt=javabin -o /dev/null
> {code}
> HTTP/1.1 200 OK
> Content-Type: application/octet-stream
> Date: Wed, 25 Sep 2013 17:31:45 GMT
> Accept-Ranges: bytes
> Transfer-Encoding: chunked
> {code}
> This might be more than just a schema REST API problem - perhaps something to
> do with the Restlet/Solr writer bridge? I peeked in the code but saw nothing
> obvious.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]