Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong kafka-admin URL at the Kafka Dev UI when using a custom application root-path #30029

Closed
sombraglez opened this issue Dec 22, 2022 · 2 comments
Assignees
Labels
area/kafka kind/bug Something isn't working

Comments

@sombraglez
Copy link

Describe the bug

Having a Quarkus application with a custom root path ( explicitly configured with quarkus.http.root-path) , which use Kafka (including the quarkus-smallrye-reactive-messaging-kafka extension), when accessing the Kafka Dev UI the following error pop up:

KafkaClientdevUIError

The following URL is called during the loading of the DevI UI:

Request URL: http://localhost:8080/q/dev/io.quarkus.quarkus-kafka-client/kafka-admin
Request Method: POST
Status Code: 404 Not Found

The requested URL cannot be found, since it doesn't include the configured quarkus.http.root-path for the application

Expected behavior

Kafka Dev UI can be used in applications using a custom root-path

Actual behavior

When using a custom root path, none of the menu elements included in the Kafka Dev UI (Topics, Nodes, Schema Registry..) can be successfully loaded and properly used

How to Reproduce?

Steps to reproduce the behavior:

  1. Using the following Quarkus Quickstart https://github.com/quarkusio/quarkus-quickstarts/tree/main/kafka-quickstart, configure a custom root path for the kafka-quickstart-producer into the application.properties. For example:
    quarkus.http.root-path=testing

  2. Start the producer mvn -f producer quarkus:dev

  3. Press d or directly go to the Dev UI http://localhost:8080/testing/q/dev/

  4. At the Apache Kafka Client click into Kafka UI or load the following URL http://localhost:8080/testing/q/dev/io.quarkus.quarkus-kafka-client/kafka-dev-ui

  5. The error described above is shown and the Kafka Dev UI cannot be properly used. Internally the URL http://localhost:8080/q/dev/io.quarkus.quarkus-kafka-client/kafka-admin instead http://localhost:8080/testing/q/dev/io.quarkus.quarkus-kafka-client/kafka-admin is called. Thus, the Dev UI cannot be correctly initialized

Output of uname -a or ver

No response

Output of java -version

Java version: 17.0.5

GraalVM version (if different from Java)

No response

Quarkus version or git rev

2.15.1.Final

Build tool (ie. output of mvnw --version or gradlew --version)

Apache Maven 3.8.2

Additional information

No response

@sombraglez sombraglez added the kind/bug Something isn't working label Dec 22, 2022
@quarkus-bot
Copy link

quarkus-bot bot commented Dec 22, 2022

/cc @alesj(kafka), @cescoffier(kafka), @ozangunalp(kafka)

ozangunalp added a commit to ozangunalp/quarkus that referenced this issue Dec 22, 2022
ozangunalp added a commit to ozangunalp/quarkus that referenced this issue Jan 3, 2023
@gsmet gsmet closed this as completed in 7093aa6 Jan 3, 2023
gsmet pushed a commit to gsmet/quarkus that referenced this issue Jan 3, 2023
gsmet pushed a commit to gsmet/quarkus that referenced this issue Jan 4, 2023
@sombraglez
Copy link
Author

Thanks for the fix @ozangunalp!!

ebullient pushed a commit to maxandersen/quarkus that referenced this issue Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/kafka kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants