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
In 3.x, a user could have an MP resource with path / and Helidon-provided services such as /metrics would still work.
In 4.x , if the user has a resource with / Helidon incorrectly routes requests for the Helidon-provided services to the user's / resource.
This is a major breaking change.
Steps to reproduce
In the 3.x MP QuickStart example, change the path on GreetResource from /greet to /, rebuild, run, and access curl http://localhost:8080/metrics. It works. curl http://localhost:8080/ and /Joe acts as they should: greetings to "World" and "Joe" respectively.
In the 4.x MP QuickStart example, change the path the same way, build, and run. The greeting requests work but accessing /metrics gives you "Hello metrics" instead of the actual metrics response.
The text was updated successfully, but these errors were encountered:
tjquinno
changed the title
4.x MP does not handle built-in services (e.g. health) if user has resource with path /
4.x [docs] MP does not handle built-in services (e.g. health) if user has resource with path /Mar 28, 2024
Environment Details
Problem Description
In 3.x, a user could have an MP resource with path
/
and Helidon-provided services such as/metrics
would still work.In 4.x , if the user has a resource with
/
Helidon incorrectly routes requests for the Helidon-provided services to the user's/
resource.This is a major breaking change.
Steps to reproduce
GreetResource
from/greet
to/
, rebuild, run, and accesscurl http://localhost:8080/metrics
. It works.curl http://localhost:8080/
and/Joe
acts as they should: greetings to "World" and "Joe" respectively./metrics
gives you "Hello metrics" instead of the actual metrics response.The text was updated successfully, but these errors were encountered: