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

Eric Pugh resolved SOLR-2084.
-----------------------------
    Resolution: Won't Fix

We're removed the stream.file, stream.url, stream.body In solr 10.

> ContentStreamUpdateRequest should play nice even with no streams
> ----------------------------------------------------------------
>
>                 Key: SOLR-2084
>                 URL: https://issues.apache.org/jira/browse/SOLR-2084
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Chris M. Hostetter
>            Priority: Major
>
> As noted by a user, attempting to use stream.file or stream.url with the 
> ContentStreamUpdateRequest (an understandable situation that might arise if 
> people aren't completely clear on when it's needed) can result in an NPE from 
> CommonsHttpSolrServer (because it has no streams to send) ...
> {code}
> java.lang.NullPointerException
>         at 
> org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:381)
>         at 
> org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:243)
>         at CommonTest.indexFilesSolrCell(CommonTest.java:59)
>         at CommonTest.main(CommonTest.java:26)
> {code}
> UpdateRequest doesn't have this problem, In the pathological case of no 
> streams ContentStreamUpdateRequest should behave just like UpdateRequest and 
> QueryRequest.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to