You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NonApplicationRootPathBuildItem#getManagementUrlPrefix() resolves non-application URLs using runtime config.
While it's not that big of a deal when the result of this call is used in dev mode, it becomes a problem when some of these paths (well, they are actually URLs when the management interface is enabled) are used at runtime such as when the Health UI is made available at runtime.
I think we should avoid using the host when configuring the Health UI as there's a good chance you won't use the interface address to get access to it. I will try to address that in a PR.
But that doesn't solve the more general problem we have here.
Noticed while trying to fix NonApplicationRootPathBuildItem#getManagementUrlPrefix() and getting NonApplicationRootPathBuildItemTest to fail.
It can be very easily reproducer with the following project:
NonApplicationRootPathBuildItem#getManagementUrlPrefix()
resolves non-application URLs using runtime config.While it's not that big of a deal when the result of this call is used in dev mode, it becomes a problem when some of these paths (well, they are actually URLs when the management interface is enabled) are used at runtime such as when the Health UI is made available at runtime.
I think we should avoid using the host when configuring the Health UI as there's a good chance you won't use the interface address to get access to it. I will try to address that in a PR.
But that doesn't solve the more general problem we have here.
Noticed while trying to fix
NonApplicationRootPathBuildItem#getManagementUrlPrefix()
and gettingNonApplicationRootPathBuildItemTest
to fail.It can be very easily reproducer with the following project:
management-url-issue.zip
Then:
Go to http://localhost:9008/q/health-ui/ , you will see the following error:
because the config used the URL generated at build time with some default config.
The text was updated successfully, but these errors were encountered: