[
https://issues.apache.org/jira/browse/SOLR-5517?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Uwe Schindler updated SOLR-5517:
--------------------------------
Attachment: SOLR-5517.patch
Here is a new patch that adds:
- UpdateRequestHandler now throws consistent HTTP status code 415 on unknown
content type
- SearchHandler throws BAD_REQUEST, if the incomming request has content
streams. Currently one test is failing because of this check, I have to figure
out why this happens, maybe a test bug - the failing test TestRemoteStreams
seems to do some fake requests to default select handler and passes some remote
streams. Of course SearchHandler now fails on this; this is incorrect usage.
> Return HTTP error on POST requests with no Content-Type
> -------------------------------------------------------
>
> Key: SOLR-5517
> URL: https://issues.apache.org/jira/browse/SOLR-5517
> Project: Solr
> Issue Type: Improvement
> Reporter: Ryan Ernst
> Attachments: SOLR-5517.patch, SOLR-5517.patch, SOLR-5517.patch
>
>
> While the http spec states requests without a content-type should be treated
> as application/octet-stream, the html spec says instead that post requests
> without a content-type should be treated as a form
> (http://www.w3.org/MarkUp/html-spec/html-spec_8.html#SEC8.2.1). It would be
> nice to allow large search requests from html forms, and not have to rely on
> the browser to set the content type (since the spec says it doesn't have to).
--
This message was sent by Atlassian JIRA
(v6.1#6144)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]