Skip to content

Add autest for empty POST framing: 411 response#13055

Merged
bneradt merged 1 commit intoapache:masterfrom
bneradt:add-411-autest
Apr 3, 2026
Merged

Add autest for empty POST framing: 411 response#13055
bneradt merged 1 commit intoapache:masterfrom
bneradt:add-411-autest

Conversation

@bneradt
Copy link
Copy Markdown
Contributor

@bneradt bneradt commented Apr 2, 2026

Add a replay-based autest for a POST request that omits both
Content-Length and Transfer-Encoding. This captures the current
411 response in ATS and gives us a focused reproducer for issue
12960.

411 is in compliance with the RFC:

https://datatracker.ietf.org/doc/html/rfc9112#section-6.3

A server MAY reject a request that contains a message body but not a
Content-Length by responding with 411 (Length Required).

Fixes: #12960

Add a replay-based autest for a POST request that omits both
Content-Length and Transfer-Encoding. This captures the current
411 response in ATS and gives us a focused reproducer for issue
12960.

411 is in compliance with the RFC:

https://datatracker.ietf.org/doc/html/rfc9112#section-6.3

  A server MAY reject a request that contains a message body but not a
  Content-Length by responding with 411 (Length Required).

Fixes: apache#12960
@bneradt bneradt added this to the 11.0.0 milestone Apr 2, 2026
@bneradt bneradt self-assigned this Apr 2, 2026
@bneradt bneradt requested a review from bryancall April 2, 2026 21:06
@bneradt bneradt merged commit efada79 into apache:master Apr 3, 2026
15 checks passed
@bneradt bneradt deleted the add-411-autest branch April 3, 2026 20:10
@github-project-automation github-project-automation bot moved this to For v10.2.0 in ATS v10.2.x Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: For v10.2.0

Development

Successfully merging this pull request may close these issues.

ATS returns 411 for POST with no body instead of treating body length as zero

2 participants