Skip to content
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

Special characters (French characters) in the request payload will be encoded into '?' character #868

Closed
cbabey opened this issue Oct 28, 2022 · 1 comment

Comments

@cbabey
Copy link

cbabey commented Oct 28, 2022

Description

As per the internal discussion[1][2], I have created this patch-type issue to fix this character encoding issue.

When building the message payload (content-type:multipart/form-data) at the gateway server, the French characters(é) in the request payload will be encoded into ‘?’ characters.

Client to Gateway request :

--header 'Content-Type: multipart/form-data' \
--form 'filename="sample**é**t1 **à** sample.msg"' \
--form 'typedocument="F30"' \

Gateway to backend Server :

filename="EN550RQ_V?hicule ? vendre_Bois Cholet .msg"

Steps to Reproduce

  1. Start the APIM-2.6.0 server (latest WUM)
  2. Create the mock backend API which except the form-data payload (you can use the created mock api endpoint[1] )
  3. Create the API by adding the attached custom sequence which contains the content-aware mediator
  4. Invoke the API using the request payload (content-type:multipart/form-data) with french characters (--form 'filename="sampleét1 à sample.msg"' )

[1] https://webhook.site/#!/8088b9fb-98b3-466c-a34a-1b834e20becc/09200e1a-44eb-47e9-88ba-f763a05615fa/1

Affected Component

APIM

Version

2.6.0

Environment Details (with versions)

No response

Relevant Log Output

No response

Related Issues

No response

Suggested Labels

No response

@hisanhunais
Copy link

Public fix done via wso2/wso2-axis2#249

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

No branches or pull requests

4 participants