Regression: Redirect for non-application root path does not consider root path correctly
See original GitHub issueDescribe the bug
I have an application where I have configured a non-standard root path using quarkus.http.root-path=/foo
. As of Quarkus 1.11 which introduces the non-application root path (defaulting to /q
) I now need to go to http://localhost:8080/foo/q/swagger-ui/ to get to the Swagger UI. This makes sense. But there is also a redirect in place for http://localhost:8080/foo/q/swagger-ui/. Unfortunately this redirect is wrong as it redirects to http://localhost:8080/q/foo/swagger-ui/.
The same problem also applies to quarkus.smallrye-openapi.path
.
Expected behavior The redirect URL for the Swagger UI (and the OpenAPI definition) should correctly consider the HTTP root path.
Actual behavior See bug description.
To Reproduce
Create a minimal application which includes the OpenAPI extension and configures a non-standard quarkus.http.root-path
.
Configuration
quarkus.http.root-path=/foo
Environment (please complete the following information):
- Output of
uname -a
orver
: - Output of
java -version
: - GraalVM version (if different from Java):
- Quarkus version or git rev: 1.11.0.CR1
- Build tool (ie. output of
mvnw --version
orgradlew --version
):
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (11 by maintainers)
It’s marked for backport triage so should be
Looking at it …