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: reintroduce web.http.default config group as deprecated #4719

Merged

Conversation

ndr-brt
Copy link
Member

@ndr-brt ndr-brt commented Jan 13, 2025

What this PR changes/adds

Ensures that web.http.default config group is still supported, though deprecated.

Why it does that

Briefly state why the change was necessary.

Further notes

List other areas of code that have changed but are not necessarily linked to the main feature. This could be method
signature changes, package declarations, bugs that were encountered and were fixed inline, etc.

Linked Issue(s)

Closes #4718

Please be sure to take a look at the contributing guidelines and our etiquette for pull requests.

@ndr-brt ndr-brt added the bug Something isn't working label Jan 13, 2025
@ndr-brt ndr-brt requested review from wolf4ood and jimmarino January 13, 2025 14:24
portMappingRegistry.register(new PortMapping(DEFAULT_CONTEXT_NAME, apiConfiguration.port(), apiConfiguration.path()));
} else {
monitor.warning("Config group %s has been deprecated, please configure the default api context under web.http".formatted(DEPRECATED_SETTING_PATH));
portMappingRegistry.register(new PortMapping(DEFAULT_CONTEXT_NAME, deprecatedApiConfiguration.port(), deprecatedApiConfiguration.path()));

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note

Invoking
DeprecatedDefaultApiConfiguration.port
should be avoided because it has been deprecated.
portMappingRegistry.register(new PortMapping(DEFAULT_CONTEXT_NAME, apiConfiguration.port(), apiConfiguration.path()));
} else {
monitor.warning("Config group %s has been deprecated, please configure the default api context under web.http".formatted(DEPRECATED_SETTING_PATH));
portMappingRegistry.register(new PortMapping(DEFAULT_CONTEXT_NAME, deprecatedApiConfiguration.port(), deprecatedApiConfiguration.path()));

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note

Invoking
DeprecatedDefaultApiConfiguration.path
should be avoided because it has been deprecated.
@ndr-brt ndr-brt merged commit 9697382 into eclipse-edc:main Jan 13, 2025
23 checks passed
@ndr-brt ndr-brt deleted the 4718-reintroduce-web-http-default branch January 13, 2025 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

web.http.default configuration context is not working anymore
3 participants