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

Fix for https://github.com/wso2/api-manager/issues/2226 #2114

Merged
merged 1 commit into from
Nov 2, 2023

Conversation

Kirishikesan
Copy link
Contributor

Overview

When an OPTIONS resource is invoked when there is another HTTP_METHOD with the same path as the OPTIONS resource, the OPTIONS call does not hit the backend and a X-JWT-ASSERTION header is added to the response of the OPTIONS call. This is happening due to improper resource filtering by HTTP_METHOD for OPTIONs call.

When a resource is invoked, synapse gets all the resources for that api and first filters by HTTP_METHOD and then filters by the path of the resource. When an options call is sent the first filter does not work as expected and it returns all the resources. Therefore in the next filter if there is another resource with the same path as the OPTIONS call, it may get selected according to the order of the LinkedHashSet.

In the micro-integrator, when an OPTIONS call is sent when there is no OPTIONS call defined, it returns all the allowed resources. This flow is reintroduced in this fix.

Resolves

wso2/api-manager#2226

@Kirishikesan Kirishikesan merged commit 343fca8 into wso2:master Nov 2, 2023
1 of 2 checks passed
shilmyhasan pushed a commit to shilmyhasan/wso2-synapse-1 that referenced this pull request Aug 28, 2024
…l_183

Fix Passthrough Threads getting stuck due to request message discard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants