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

No AccessLog output with http response 413 #5174

Closed
klustria opened this issue Oct 13, 2022 · 0 comments
Closed

No AccessLog output with http response 413 #5174

klustria opened this issue Oct 13, 2022 · 0 comments
Assignees
Labels
2.x Issues for 2.x version branch bug Something isn't working P2 webserver

Comments

@klustria
Copy link
Member

klustria commented Oct 13, 2022

Environment Details

  • Helidon Version: 2.5.x
  • Helidon SE

Problem Description

AcccessLog does not output anything when HTTP/1.1 413 Request Entity Too Large is returned due to maxPayLoadSize violation.

Steps to reproduce

  1. Use the helidon-quickstart-se app
  2. Register AccessLogSupport:
routingBuilder.register(AccessLogSupport.create(config.get("server.access-log")));
  1. Set access-log configuration in application.yaml like below:
server:
  port: 8080
  host: 0.0.0.0
  access-log: 
    enabled: true
    format: "%h %l %u %t %r %s %b %{Referer}i"
  1. Add maxPayloadSize method in the WebServer builder and it to a a very low value to force error 413 Request Entity Too Large
 WebServer server = WebServer.builder(createRouting(config))
                .config(config.get("server"))
                .addMediaSupport(JsonpSupport.create())
                . maxPayloadSize(10L)
                .build();
  1. Build and run the app
  2. Issue a PUT request: curl -X PUT -H "Content-Type: application/json" -d '{"greeting" : "Hola"}' http://localhost:8080/greet/greeting
  3. HTTP/1.1 413 Request Entity Too Large should be received from that request, but no access log will be shown from the console.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.x Issues for 2.x version branch bug Something isn't working P2 webserver
Projects
Archived in project
Development

No branches or pull requests

3 participants