Skip to content

req.content().hasEntity() Returns True for GET Requests When Using HTTP/2 with TLS #10826

@iampratapak

Description

@iampratapak

Environment Details

  • Helidon Version: 4.3.1
  • Helidon SE or Helidon MP: SE
  • JDK version: 25.0.1+8.1
  • OS: MacOS

Problem Description

In my Helidon SE 4.3.1 application, I have enabled both HTTP/2 and TLS

I have the following dependency included:

<dependency>
    <groupId>io.helidon.webserver</groupId>
    <artifactId>helidon-webserver-http2</artifactId>
</dependency>

I am noticing that when TLS is enabled and the HTTP version is 2.0, req.content().hasEntity() always returns true, even for GET requests that have no body.

However, when TLS is disabled, req.content().hasEntity() correctly returns false for GET calls using HTTP version 2.0

Similarly, when TLS is enabled and the HTTP version is 1.1, req.content().hasEntity() also returns false correctly for GET calls.

Steps to reproduce

  1. Use the helidon-webserver-http2 dependency
  2. Configure TLS (Transport Layer Security)
  3. Send an HTTP/2.0 GET request without a body

I have also attached the reproducer 'Quick Start' application here

helidon-quickstart-se.zip

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Sprint Scope

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions