-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Labels
Comments
/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
Merged
gsmet
pushed a commit
to gsmet/quarkus
that referenced
this issue
Jan 3, 2023
…root path Fixes quarkusio#30029 (cherry picked from commit 7093aa6)
gsmet
pushed a commit
to gsmet/quarkus
that referenced
this issue
Jan 4, 2023
…root path Fixes quarkusio#30029 (cherry picked from commit 7093aa6)
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
Describe the bug
Having a Quarkus application with a custom root path ( explicitly configured with
quarkus.http.root-path
) , which use Kafka (including thequarkus-smallrye-reactive-messaging-kafka
extension), when accessing the Kafka Dev UI the following error pop up: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 applicationExpected 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:
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
Start the producer
mvn -f producer quarkus:dev
Press
d
or directly go to the Dev UI http://localhost:8080/testing/q/dev/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
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
insteadhttp://localhost:8080/testing/q/dev/io.quarkus.quarkus-kafka-client/kafka-admin
is called. Thus, the Dev UI cannot be correctly initializedOutput of
uname -a
orver
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
orgradlew --version
)Apache Maven 3.8.2
Additional information
No response
The text was updated successfully, but these errors were encountered: