netty5/codec-http/src/main/java/io/netty/handler/codec/http/multipart
Julien Viet 1ad47282c3 Preserve the original filename when encoding a multipart/form in mixed mode. (#9270)
Motivation:

The HttpPostRequestEncoder overwrites the original filename of file uploads sharing the same name encoded in mixed mode when it rewrites the multipart body header of the previous file. The original filename should be preserved instead.

Modifications:

Change the HttpPostRequestEncoder to reuse the correct filename when the encoder switches to mixed mode. The original test is incorrect and has been modified too, in addition it tests with an extra file upload since the current test was not testing the continuation of a mixed mode.

Result:

The HttpPostRequestEncoder will preserve the original filename of the first fileupload when switching to mixed mode
2019-06-24 10:40:17 +02:00
..
AbstractDiskHttpData.java Allow to call AbstractDiskHttpData.setContent(Unpooled.EMPTY_BUFFER) multiple times. (#7890) 2018-04-30 08:39:24 +02:00
AbstractHttpData.java Update to new checkstyle plugin (#8777) (#8780) 2019-01-25 11:58:42 +01:00
AbstractMemoryHttpData.java use checkPositive/checkPositiveOrZero (#8835) 2019-02-04 16:01:49 +01:00
Attribute.java Make retained derived buffers recyclable 2016-05-17 11:16:13 +02:00
CaseIgnoringComparator.java Fix most inspector warnings 2014-07-02 19:55:07 +09:00
DefaultHttpDataFactory.java Fix DefaultHttpDataFactory cleanup bug 2017-12-28 07:40:17 +01:00
DiskAttribute.java Make retained derived buffers recyclable 2016-05-17 11:16:13 +02:00
DiskFileUpload.java Use constant string instead of user provided file name for DiskFileUpload temp file names. 2017-04-27 16:02:41 -07:00
FileUpload.java Make retained derived buffers recyclable 2016-05-17 11:16:13 +02:00
FileUploadUtil.java [#5514] Fix DiskFileUpload and MemoryFileUpload equals(...) method. 2016-07-14 09:09:16 +02:00
HttpData.java Fix javadoc issues 2017-02-22 07:31:07 +01:00
HttpDataFactory.java Get uploaded size while upload is in progress 2015-06-12 14:16:07 +02:00
HttpPostBodyUtil.java Removing a SeekAheadNoBackArrayException to avoid exception handling 2017-06-06 19:30:04 -07:00
HttpPostMultipartRequestDecoder.java delete Other "Content-" MIME Header Fields exception (#9122) 2019-06-07 13:51:25 -07:00
HttpPostRequestDecoder.java Improvement : allocate less object during multipart form parsing. 2017-04-25 14:06:10 +02:00
HttpPostRequestEncoder.java Preserve the original filename when encoding a multipart/form in mixed mode. (#9270) 2019-06-24 10:40:17 +02:00
HttpPostStandardRequestDecoder.java Extract common parts from if statements (#7831) 2018-04-11 14:36:56 +02:00
InterfaceHttpData.java Enable a user specify an arbitrary information with ReferenceCounted.touch() 2014-02-13 18:16:25 -08:00
InterfaceHttpPostRequestDecoder.java Extends HttpPostRequestEncoder to support all methods except TRACE 2016-12-30 12:00:21 -08:00
InternalAttribute.java Fix InternalAttribute.equals 2016-01-11 09:25:17 +01:00
MemoryAttribute.java Make retained derived buffers recyclable 2016-05-17 11:16:13 +02:00
MemoryFileUpload.java [#5514] Fix DiskFileUpload and MemoryFileUpload equals(...) method. 2016-07-14 09:09:16 +02:00
MixedAttribute.java Make retained derived buffers recyclable 2016-05-17 11:16:13 +02:00
MixedFileUpload.java Make retained derived buffers recyclable 2016-05-17 11:16:13 +02:00
package-info.java Port http multipart package. See #709 2012-11-04 13:59:50 +01:00