Description:
When trying to retrieve a jpg image (as the backend) with API Manager 2.2.0 and it can successfully retrieve with the below builders and formatters in axis.xml
But when enabling response caching in the API publisher portal, there is an issue with message building which cause to throw 'java.io.CharConversionException: Invalid UTF-8 start byte 0xff' error. This can be omitted by adding following messageBuilder and messageFormatter to axis2.xml.
After adding the above, when trying to test by enabling response caching and noticed that the first request only was succeeded and 2nd request wasn't succeeded and not returning the image as the response.
This second request not returning the intended 'Content-Type: image/jpg' and return 'application/soap+xml' as the Content-Type in debug logs..
Description: When trying to retrieve a jpg image (as the backend) with API Manager 2.2.0 and it can successfully retrieve with the below builders and formatters in axis.xml
But when enabling response caching in the API publisher portal, there is an issue with message building which cause to throw 'java.io.CharConversionException: Invalid UTF-8 start byte 0xff' error. This can be omitted by adding following messageBuilder and messageFormatter to axis2.xml.
After adding the above, when trying to test by enabling response caching and noticed that the first request only was succeeded and 2nd request wasn't succeeded and not returning the image as the response. This second request not returning the intended 'Content-Type: image/jpg' and return 'application/soap+xml' as the Content-Type in debug logs..
Affected Product Version: APIM 2.2.0