Make sure the pom specifies Helidon version 4.0.0.
Build and run, then run curl http://localhost:8080/greet and you see
Requested URI: http://localhost:8080/greet
Now, change the Helidon version in the pom's parent specification to 4.0.1, rebuild, rerun, and access the app again. You see this output (missing path):
Environment Details
Problem Description
In 4.0.0, invoking
request.requestedUri().toUri().toString()
returned the entire path.Beginning in 4.0.1, it omits path elements that are mentioned when the service is registered.
Steps to reproduce
Revise the SE QuickStart example to add this line to
GreetService#getDefaultMessageHandler
:Build and run, then run
curl http://localhost:8080/greet
and you seeNow, change the Helidon version in the pom's parent specification to 4.0.1, rebuild, rerun, and access the app again. You see this output (missing path):