Open nikita-mishchenko opened 6 years ago
the moco-runner recognized that your charset is not 'utf-8' but 'utf-8;' , so it throw a exception named 'illegalchasetnameexception'. it means your charset name is wrong .
the moco-runner recognized that your charset is not 'utf-8' but 'utf-8;' , so it throw a exception named 'illegalchasetnameexception'. it means your charset name is wrong .
Please read problem description again. I checked where was a problem, and it's netty bug. I already report it(https://github.com/netty/netty/issues/8273) and looks like it's fixed now.
So you need to upgrade netty version. To fix this issue in moco.
Hello, there is an issue with charset resolving for SOAP 1.2 requests. In SOAP 1.2 specification you have action defined in
ContentType
header and it could have value:text/xml; charset=utf-8; action="someaction"
. Moco useHttpUtil
class from netty-codec-http to resolve and set encoding.HttpUtil
class has methodgetCharsetAsSequence(CharSequence contentTypeValue)
which finds word charset and take whole line from charset to the end. So from example above you will receive the following string:utf-8; action="someaction"
and then exceptionjava.nio.charset.IllegalCharsetNameException: utf-8; action...