mirror of https://github.com/apache/lucene.git
SOLR-2763: Extracting update request handler throws exception and returns 400 when zero-length file posted using multipart form post
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1173139 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0047a77f83
commit
3013098230
|
@ -353,6 +353,9 @@ Bug Fixes
|
|||
|
||||
* SOLR-2772: Fixed Date parsing/formatting of years 0001-1000 (hossman)
|
||||
|
||||
* SOLR-2763: Extracting update request handler throws exception and returns 400
|
||||
when zero-length file posted using multipart form post (janhoy)
|
||||
|
||||
Other Changes
|
||||
----------------------
|
||||
|
||||
|
|
|
@ -352,8 +352,8 @@ class MultipartRequestParser implements SolrRequestParser
|
|||
item.getFieldName(),
|
||||
item.getString(), params.getMap() );
|
||||
}
|
||||
// Only add it if it actually has something...
|
||||
else if( item.getSize() > 0 ) {
|
||||
// Add the stream
|
||||
else {
|
||||
streams.add( new FileItemContentStream( item ) );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue