We upgraded our netty jar versions of below 2 artifacts in our application. 
Our application exposes REST APIs for another client app which calls them. 
netty-codec-http
netty-common

And now our Regression test suite is failing for some flows after this 
change. We upgraded these two jar versions from version from 4.1.108.Final 
to 4.1.118.Final . upon debugging the failures what we found is that the 
de-serialization or decoding of the request payload at the server end 
failing if the content-type header in the incoming request does match with 
request body or payload that comes with it. for example if the content-type 
header is application/json but the body is plain text the it fails to 
deserialize. The issue was resolved after changing the content-type header 
to text/plain. Similarly this issue occurred in another flow where the 
content-type header value was application/x-www-form-urlencoded but the 
request body was in in json format. After changing the content-type header 
value to application/json the issues was resolved. 

Has there been any changes with respect to this in higher versions after 
4.1.108 in netty and is there a way to disable this stricter check?

Thanks
Ayaskant

-- 
You received this message because you are subscribed to the Google Groups 
"Netty discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/netty/9dec580e-02d1-4de0-bb7f-972acccb18b9n%40googlegroups.com.

Reply via email to