`quarkus.http.redirect-to-non-application-root-path` is not working on master branch
See original GitHub issueGiven an application with the following configuration:
quarkus.http.root-path=/api
quarkus.http.non-application-root-path=/q
quarkus.http.redirect-to-non-application-root-path=true
An http://localhost:8080/openapi
should return an HTTP 301 with a location header /q/openapi
but is returning a 404.
Looks like on master we are pre-pending quarkus.http.root-path
.
master -> http://localhost:8080/api/health -> redirected to http://localhost:8080/q/health
previous -> http://localhost:8080/health -> redirected to http://localhost:8080/q/health>
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
HTTP Reference - Quarkus
If Undertow is present RESTEasy will run as a Servlet filter, otherwise it will run directly on top of Vert.x with no Servlet...
Read more >Changing master branch to main in Quarkus repositories
I just renamed the master branch of the quarkus-quickstarts repo. GitHub says to apply these commands to your repo: git branch -m master...
Read more >quarkus.http.root-path not honored when using ... - GitHub
http.root-path doesn't seem to work with WebSockets registered programmatically via the ServerApplicationConfig route. This may be related if ...
Read more >Quarkus SwaggerUI ignores http.root.path if resteasy-reactive ...
Im using the following config: quarkus.http.root-path=/test-service quarkus.http.port=${PORT:8080} quarkus.resteasy-reactive.path=rest.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Maybe this blog post could be transformed into regular Quarkus guide to summarize available non application endpoints, their paths and configuration options.
New blog posts are coming and path-resolution-in-quarkus one will be moved to “Older posts” sooner or later. Once that happens Quarkus users will have harder time to find the info. Another benefit of regular guide is that the text is present in the main Quarkus codebase and it is easier to find the content with offline google search, I mean
git grep
.That’s correct behavior.
All endpoints came off the
http.root-path
, so the redirects do the same. Ifhttp.root-path
is something other than/
the redirects will come off the path it defines