New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APIM Policy xml to json trims unknown caracters when using non UTF-8 charset #1085

Closed
vdusauto opened this Issue Feb 16, 2018 · 0 comments

Comments

Projects
None yet
3 participants
@vdusauto

vdusauto commented Feb 16, 2018

A response content containing non UTF-8 caracters is trimmed of these caracters while passing through xml2json policy in API Manager.

Expected Behavior

Content should not be trimmed if proper charset is set in content-type under charset tag.

Current Behavior

Caracters are remove

Possible Solution

Transform response content to UTF8 prior to xml2json conversion

Steps to Reproduce (for bugs)

Have a content in ISO-8859-1 with special caracters in response content and use xml2json policy

Context

ISO-8859-1 caracters

Your Environment

Latest

vdusauto added a commit to vdusauto/gravitee-policy-xml-json that referenced this issue Feb 16, 2018

Fix gravitee-io/issues#1085
fix(xml-json): Manage the content-type value from inbound request to transform into JSON payload

brasseld added a commit to gravitee-io/gravitee-policy-xml-json that referenced this issue Feb 18, 2018

@brasseld brasseld self-assigned this Feb 18, 2018

@brasseld brasseld added this to the 1.13.3 milestone Feb 18, 2018

brasseld added a commit to gravitee-io/gravitee-policy-xml-json that referenced this issue Feb 18, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment