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

Add support for additional paths for HomepageForwardingFilterConfig #2136

Merged
merged 2 commits into from Oct 17, 2022

Conversation

genuss
Copy link
Contributor

@genuss genuss commented Oct 9, 2022

Closes #2135

@@ -58,7 +58,9 @@ public class AdminServerUiAutoConfigurationTest implements WithAssertions {
public class ReactiveUiConfigurationTest {

private final ReactiveWebApplicationContextRunner contextRunner = new ReactiveWebApplicationContextRunner()
.withPropertyValues("--spring.boot.admin.ui.available-languages=de", "--spring.webflux.base-path=test")
.withPropertyValues("--spring.boot.admin.ui.available-languages=de", "--spring.webflux.base-path=test",
"--spring.boot.admin.contextPath=test", "--spring.boot.admin.ui.additional-routes[0]=/info/**",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SBA context path is used for filtering in case of webflux application. I noticed that when added my testcases before implementation (tests didn't fail).
I'm not sure whether it's a bug or intended behaviour, so I leave the auto configuration logic as is.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you, there was a bug, should be fixed with #2141

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose, I should wait for that PR to be merged, rebase mine and then merge. Will that be ok?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes sounds good

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

* Additional routes for home page redirecting filter. Any request to these routes
* will be redirected to home page internally
*/
private List<String> additionalRoutes = new ArrayList<>();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What should additional routes be used for?

We understand the need to add excludes, but why includes?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, that's a good question. I added them just like excludes and don't have an example. Maybe, it's better not add this property.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok please remove them

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed

@genuss
Copy link
Contributor Author

genuss commented Oct 16, 2022

Fixed comments and rebased.

@SteKoe SteKoe merged commit 3990e05 into codecentric:master Oct 17, 2022
@genuss genuss deleted the homepage-filter-improve branch October 18, 2022 02:25
@genuss
Copy link
Contributor Author

genuss commented Oct 18, 2022

Thank you! 👍

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.

Allow a user to customize HomepageForwardingFilterConfig
3 participants