-
Notifications
You must be signed in to change notification settings - Fork 644
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
Fix XML Schema validation not working for Soap APIs #13062
base: master
Are you sure you want to change the base?
Conversation
📝 WalkthroughWalkthroughThis pull request updates the Changes
Sequence Diagram(s)sequenceDiagram
participant G as GatewayUtils
participant A as Axis2MC
G->>A: getProperty(ThreatProtectorConstants.CONTENT_TYPE)
alt Property is not null
A-->>G: returns content type value
G->>G: contentType = value.toString()
else Property is null
G->>G: contentType = ThreatProtectorConstants.SOAP_CONTENT_TYPE
end
Assessment against linked issues
Suggested reviewers
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms (6)
🔇 Additional comments (1)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
Purpose:
Fix the error in XML Schema Validation for Soap APIs, which occurs due to the incorrect retrieval of the Content-Type property. For Soap APIs, this is retrieved as null.
For Rest APIs Content-Type is correctly retrieved and therefore the XML validation works as expected.
Approach:
Modified the code to get the correct property for Content-Type when it is null.
Fix: wso2/api-manager#3596