Open jaydev-ziroh opened 2 years ago
@jaydev-ziroh the translation happens as required by the HTTP RFC, I believe it comes from:
https://datatracker.ietf.org/doc/html/rfc2616#section-2.2
Where it states that a token cannot contain a separator, which includes =
.
I think if you consider this a bug then it should be raised in netty
as we are just consuming the object they provide and cannot change it.
Version
4.2.7
Context
I have created a file upload server using vertx. the files are sent as multipart form data. the server should accept files with names containing special characters ( = specifically). vertx internally replaces special characters in the name of file to space character(byte representation 32)
Do you have a reproducer?
Steps to reproduce
server side output will be
ab cd.txt
Extra
openjdk 17 hotspot
I was also able to backtrack the issue and found out this code in
io.netty.handler.codec.http.multipart.HttpPostMultipartRequestDecoder
.the
cleanstring
method is doing this whencleanString(filenameAttribute.getValue())
is called in code snippet 1