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

David Smiley commented on SOLR-15418:
-------------------------------------

This fix in the PR is not to the V2 API but in SolrRequestParsers by not adding 
ContentStreams that are empty / non-existent.  Somehow the scenario illustrated 
in this issue (and in a test I added) tickles the problem, but hasn't been 
noticed otherwise for V1 API.

I plan to merge in a day or so; I'm pretty confident in the solution being 
safe/reasonable.

> V2 API for GET to a collection's handler fails, complaining about bad 
> contentType
> ---------------------------------------------------------------------------------
>
>                 Key: SOLR-15418
>                 URL: https://issues.apache.org/jira/browse/SOLR-15418
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: v2 API
>            Reporter: David Smiley
>            Assignee: David Smiley
>            Priority: Major
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
>  An HTTP GET request to Solr /select or perhaps other handlers can result in 
> an exception.
> http://localhost:8983/api/c/collection1/select?q=*:*
> Can fail:
> {noformat}
> 6303 ERROR (qtp983049796-70) [n:127.0.0.1:51236_solr c:collection1 s:shard1 
> r:core_node4 x:collection1_shard1_replica_n2 ] o.a.s.h.RequestHandlerBase 
> org.apache.solr.common.SolrException: Bad contentType for search handler 
> :null request={q=-*:*&wt=javabin&version=2}
>       at 
> org.apache.solr.request.json.RequestUtil.processParams(RequestUtil.java:73)
>       at 
> org.apache.solr.util.SolrPluginUtils.setDefaults(SolrPluginUtils.java:165)
>       at 
> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:211)
>       at org.apache.solr.api.ApiBag$ReqHandlerToApi.call(ApiBag.java:269)
>       at org.apache.solr.api.V2HttpCall.execute(V2HttpCall.java:354)
>       at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:564)
>       at 
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:507)
>       at 
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:430)
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to