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

NullPointerException for request with empty Host header #37554

Closed
querdenker2k opened this issue Dec 6, 2023 · 6 comments
Closed

NullPointerException for request with empty Host header #37554

querdenker2k opened this issue Dec 6, 2023 · 6 comments
Labels
area/vertx kind/bug Something isn't working

Comments

@querdenker2k
Copy link

Describe the bug

NPE when calling with Header "Host: "

Expected behavior

No NPE

Actual behavior

NPE is thrown inside vert.x

How to Reproduce?

Create a Quarkus application and call with curl
curl -iv -H "User-Agent:" -H "Accept:" -H "Host:" http://localhost:3186/q/health/live

Output of uname -a or ver

No response

Output of java -version

No response

Quarkus version or git rev

No response

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

No response

Additional information

see #36234

@querdenker2k querdenker2k added the kind/bug Something isn't working label Dec 6, 2023
@mschorsch
Copy link
Contributor

@cescoffier

@cescoffier
Copy link
Member

Can you report this issue in Vert.x Core? Not much we can do here.

@querdenker2k
Copy link
Author

Ok, done
eclipse-vertx/vert.x#5011

@vietj
Copy link

vietj commented Dec 6, 2023

that's actually missing host header in vert-web vert-x3/vertx-web#2536 empty works correclty

@querdenker2k
Copy link
Author

@vietj thanks for the quick fix

@geoand
Copy link
Contributor

geoand commented Dec 7, 2023

Closing as an upstream issue

@geoand geoand closed this as not planned Won't fix, can't repro, duplicate, stale Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/vertx kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants