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 drive-by localhost cors deny TCK test #1591

Merged
merged 1 commit into from
Jan 31, 2023
Merged

Fix for drive-by localhost cors deny TCK test #1591

merged 1 commit into from
Jan 31, 2023

Conversation

timyates
Copy link
Contributor

When the filter blocks access to localhost from a non-local origin, there is no ROUTE_INFO set on the response object.

Previously, we just called get() on the Optional. This fails.

I believe the fix is to only continue processing the response if the ROUTE_INFO has been applied to the response.

When the filter blocks access to localhost from a non-local origin, there is no ROUTE_INFO set on the response object.

Previously, we just called get() on the Optional.  This fails.

I believe the fix is to only continue processing the response if the ROUTE_INFO has been applied to the response.
@timyates timyates added the type: bug Something isn't working label Jan 31, 2023
@timyates timyates requested a review from sdelamo January 31, 2023 16:17
@timyates timyates self-assigned this Jan 31, 2023
@timyates
Copy link
Contributor Author

Unsure why we're not running 3.13 against java 8 and 11?

@timyates
Copy link
Contributor Author

Seems to have been done here on the 15th Dec #1530

@sonarcloud
Copy link

sonarcloud bot commented Jan 31, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@sdelamo sdelamo merged commit 0ddcbe3 into 3.13.x Jan 31, 2023
@sdelamo sdelamo deleted the fix-cors branch January 31, 2023 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants