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.

Regression: Redirect for non-application root path does not consider root path correctly

See original GitHub issue

Describe 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 or ver:
  • 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 or gradlew --version):

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
kenfinnigancommented, Jan 11, 2021

It’s marked for backport triage so should be

1reaction
phillip-krugercommented, Jan 11, 2021

Looking at it …

Read more comments on GitHub >

github_iconTop Results From Across the Web

'redirect_to root_path' does not appear as a redirect in RSpec ...
I think I solved the problem. Changing the verification code to it "should redirect to root" do current_url.should == root_url("en") end.
Read more >
Trailing slash added after entry point path leads to 404 not found
Hello, I think there is a regression probably introduced since 2.3. Adding a tranling slash to entrypoint path leads to 404 not found....
Read more >
Different redirect behaviour when accessing path without a
Hi, Tomcat 8.0.29 changes the behaviour of requests for paths without a trailing slash. It seems to be limited to context roots, ...
Read more >
Integration tests in ASP.NET Core | Microsoft Learn
The app root directory (the content root path) is used to discover views and content files.
Read more >
Find the Document Root of your Website - InMotion Hosting
In this article, we will explain the public_html folder, your website's document root, and add-on and subdomains doc root.
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