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

Request Content-type is not validated in the APIM Gateway #1614

Closed
SupunTharakaSandaruwan opened this issue Mar 14, 2023 · 0 comments
Closed

Comments

@SupunTharakaSandaruwan
Copy link

Description

If a SOAPtoREST API is deployed in the WSO2 APIM 4.0.0 [1] and invalid content type is sent via the API invocation request, that request will not be validated and will send to the backend.

[1] https://apim.docs.wso2.com/en/4.0.0/design/create-api/create-rest-api/generate-rest-api-from-soap-backend/#!

Steps to Reproduce

  • Create a SOAPToREST API using a WSDL file in APIM 4.0.0
  • The request payload will be generated with the "json" format.
  • Invoke the API with different content-type than the "application/json".
  • The APIM GW will allow the request to be sent through the GW and will not do request content-type validation.

Affected Component

APIM

Version

4.0.0

Environment Details (with versions)

No response

Relevant Log Output

No response

Related Issues

No response

Suggested Labels

No response

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

2 participants