Motivation: AbstractDiskHttpData#getChunk opens and closes fileChannel every time when it is invoked, as a result the uploaded file is corrupted. This is a regression caused by #10270. Modifications: - Close the fileChannel only if everything was read or an exception is thrown - Add unit test Result: AbstractDiskHttpData#getChunk closes fileChannel only if everything was read or an exception is thrown |
||
---|---|---|
.. | ||
src | ||
pom.xml |