question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`quarkus.http.redirect-to-non-application-root-path` is not working on master branch

See original GitHub issue

Given 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:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
rsvobodacommented, Mar 16, 2021

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.

1reaction
kenfinnigancommented, Mar 16, 2021

That’s correct behavior.

All endpoints came off the http.root-path, so the redirects do the same. If http.root-path is something other than / the redirects will come off the path it defines

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found