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:
Jan Høydahl 2011-09-20 13:38:01 +00:00
parent 0047a77f83
commit 3013098230
2 changed files with 5 additions and 2 deletions

View File

@ -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
----------------------

View File

@ -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 ) );
}
}