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 Status 500 with "Accepted by If-None-Match header" is returned when serving unchanged static content #8543

Closed
1tchy opened this issue Mar 23, 2024 · 2 comments · Fixed by #8599
Assignees
Labels
4.x Version 4.x bug Something isn't working P2 webserver
Milestone

Comments

@1tchy
Copy link

1tchy commented Mar 23, 2024

Environment Details

  • Helidon Version: 4.0.6
  • Helidon MP
  • JDK version: 21.0.2
  • OS: OSX

Problem Description

  • When loading static content with a matching E-Tag, a HTTP-Status 500 ("Internal Server Error") is returned instead of 304 ("Not Modified") and the response contains "Accepted by If-None-Match header".
  • It did work as expected in 4.0.5 and does not work anymore in 4.0.6, probably due to 4.x: Return 500 when 204 with entity is sent from routing. #8357.
  • The following error is being logged: "Attempt to send status 500 Internal Server Error with entity. Server responded with Internal Server Error. Please fix your routing, this is not allowed by HTTP specification, such responses MUST NOT contain an entity."

Steps to reproduce

  • Create a project which serves a static file with helidon-webserver-static-content.
  • Load the file in your favourite browser, this shows the file
  • Reload the file in your favourite browser, this returns error 500 and the message "Accepted by If-None-Match header" is being shown instead of the files content
@mikarinneoracle
Copy link

Also getting this error 4.0.6

@Rinbo
Copy link

Rinbo commented Aug 4, 2024

This is still an issue in 4.0.11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.x Version 4.x bug Something isn't working P2 webserver
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

5 participants