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

HTTP HEAD to @GET endpoint of (reactive) Jakarta RESTful web services sub resource returns 405 #43422

Closed
DeMol-EE opened this issue Sep 20, 2024 · 2 comments · Fixed by #43440
Labels
area/rest kind/bug Something isn't working
Milestone

Comments

@DeMol-EE
Copy link
Contributor

DeMol-EE commented Sep 20, 2024

Describe the bug

I have a @GET endpoint inside a Jakarta RESTful web services sub resource. Doing an HTTP HEAD request to it, I would expect to get a 2XX, but instead, I got a 405.

Expected behavior

2XX

Actual behavior

405

How to Reproduce?

Run the test of this reproducer to see the failing case.

Output of uname -a or ver

Darwin <..> 23.6.0 Darwin Kernel Version 23.6.0: Mon Jul 29 21:14:30 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T6000 arm64

Output of java -version

OpenJDK 64-Bit Server VM Zulu21.28+85-CA (build 21+35, mixed mode, sharing)

Quarkus version or git rev

3.14.4

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

Apache Maven 3.9.8 (36645f6c9b5079805ea5009217e36f2cffd34256)

Additional information

No response

@DeMol-EE DeMol-EE added the kind/bug Something isn't working label Sep 20, 2024
@DeMol-EE DeMol-EE changed the title Http HEAD to @GET endpoint of Jakarta RESTful web services returns 405 HTTP HEAD to @GET endpoint of Jakarta RESTful web services sub resource returns 405 Sep 20, 2024
@quarkus-bot
Copy link

quarkus-bot bot commented Sep 21, 2024

/cc @FroMage (rest), @stuartwdouglas (rest)

@DeMol-EE DeMol-EE changed the title HTTP HEAD to @GET endpoint of Jakarta RESTful web services sub resource returns 405 HTTP HEAD to @GET endpoint of (reactive) Jakarta RESTful web services sub resource returns 405 Sep 21, 2024
@geoand
Copy link
Contributor

geoand commented Sep 23, 2024

Thanks for the reproducer. #43440 fixes the issue

@geoand geoand closed this as completed in 898b038 Sep 23, 2024
geoand added a commit that referenced this issue Sep 23, 2024
Support `@HEAD` and `@OPTIONS` in sub-resources
@quarkus-bot quarkus-bot bot added this to the 3.16 - main milestone Sep 23, 2024
mskacelik pushed a commit to mskacelik/quarkus that referenced this issue Sep 27, 2024
This is the same exact support as exists for normal
Resource methods

Fixes: quarkusio#43422
@gsmet gsmet modified the milestones: 3.16.0.CR1, 3.15.2 Oct 18, 2024
gsmet pushed a commit to gsmet/quarkus that referenced this issue Oct 21, 2024
This is the same exact support as exists for normal
Resource methods

Fixes: quarkusio#43422
(cherry picked from commit 898b038)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/rest kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants