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

Improve handling of missing config nodes used to init CORS objects #1709

Merged
merged 2 commits into from
May 1, 2020
Merged

Improve handling of missing config nodes used to init CORS objects #1709

merged 2 commits into from
May 1, 2020

Conversation

tjquinno
Copy link
Member

Resolves #1708

If a missing config node is passed to CorsSupport.Builder.config (directly or indirectly via CorsSupport.create(Config), create a default CorsSupport instance which is by design rather permissive: allow-methods = *, etc. Same for CorsSupportMp.

Log an INFO message when this happens.

Add tests for this behavior.

…used to initialize CorsSupport or CrossOriginSupport

Signed-off-by: tim.quinn@oracle.com <tim.quinn@oracle.com>
@tjquinno tjquinno added 2.0-M3 2.x Issues for 2.x version branch cors Related to CORS support labels Apr 30, 2020
@tjquinno tjquinno added this to the 2.0.0 milestone Apr 30, 2020
@tjquinno tjquinno requested a review from spericas April 30, 2020 15:46
@tjquinno tjquinno self-assigned this Apr 30, 2020
@tjquinno tjquinno merged commit 4638962 into helidon-io:master May 1, 2020
@tjquinno tjquinno deleted the cors-missing-config branch May 1, 2020 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.x Issues for 2.x version branch cors Related to CORS support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CorsSupport.create(Config) should tolerate missing config value
2 participants