lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hoss Man (JIRA)" <>
Subject [jira] Created: (SOLR-2084) ContentStreamUpdateRequest should play nice even with no streams
Date Mon, 23 Aug 2010 22:47:16 GMT
ContentStreamUpdateRequest should play nice even with no streams

                 Key: SOLR-2084
             Project: Solr
          Issue Type: Improvement
            Reporter: Hoss Man

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)

        at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(
        at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(
        at CommonTest.indexFilesSolrCell(
        at CommonTest.main(

UpdateRequest doesn't have this problem, In the pathological case of no streams ContentStreamUpdateRequest
should behave just like UpdateRequest and QueryRequest.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message