)]}'
{
  "commit": "5747f39fba1ba444a84190e67933b787011e42c7",
  "tree": "27027b2d7439f03ecccc610337c540edc86358ec",
  "parents": [
    "fa37e7626715b5c58cf9e978ef3ece37bb5e88ab"
  ],
  "author": {
    "name": "PJ Fanning",
    "email": "pjfanning@users.noreply.github.com",
    "time": "Sat Nov 28 15:20:31 2026 +0100"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Sat Nov 28 15:20:31 2026 +0100"
  },
  "message": "[2.0.x] fix: reset an HTTP/2 request stream whose DATA does not match its content-length (#1534) (#1852)\n\nMotivation:\nBackport of #1534 to 2.0.x for the 2.0.2 release. The HTTP/2 server\nnever compared a request\u0027s content-length with the DATA it received, so\na request was delivered with a body that differs from what it declared.\nRFC 9113 section 8.1.1 makes such a request malformed, a stream error\nof type PROTOCOL_ERROR.\n\nModification:\nCherry-pick of 26a93b0a1 from main. The main code is kept except where\n2.0.x lacks what it builds on: 2.0.x has no streamClosed helper, so the\ncontent-length entry is removed next to the HEAD request entry in both\nplaces that remove a stream; the automatic 100 Continue lines are not\ntaken because that feature is not on 2.0.x; and the multiplexer method\nis closeStream on 2.0.x (dequeueOutStream on main). RequestParsing and\nboth test files are the main versions unchanged.\n\nResult:\nA request whose DATA does not add up to its content-length is reset\nwith RST_STREAM(PROTOCOL_ERROR). If the request entity has already been\ndispatched, it fails with an EntityStreamException. Other streams on\nthe connection keep going. This is a behavior change for clients that\nsend a mismatching content-length.\n\nTests:\n- sbt \"http2-tests/Test/testOnly *RequestParsingSpec *Http2ServerSpec\n*Http2ServerDemuxSpec\" - pass, 198 tests, 17 pending\n- Full test suite, cross-version builds and MiMa left to CI\n\nReferences:\nBackport of #",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "69eceb59a86f0dd65394295fee3a79af04e189fa",
      "old_mode": 33188,
      "old_path": "http-core/src/main/scala/org/apache/pekko/http/impl/engine/http2/Http2StreamHandling.scala",
      "new_id": "0f2b075cbc1fc90909ca3f4363469437855a8fe7",
      "new_mode": 33188,
      "new_path": "http-core/src/main/scala/org/apache/pekko/http/impl/engine/http2/Http2StreamHandling.scala"
    },
    {
      "type": "modify",
      "old_id": "476050a1339486f62d08094211de680b6a962c31",
      "old_mode": 33188,
      "old_path": "http-core/src/main/scala/org/apache/pekko/http/impl/engine/http2/RequestParsing.scala",
      "new_id": "8ab379df4cb2320c84f51b0513a5f118bbacf197",
      "new_mode": 33188,
      "new_path": "http-core/src/main/scala/org/apache/pekko/http/impl/engine/http2/RequestParsing.scala"
    },
    {
      "type": "modify",
      "old_id": "f7aea6ccf2283001562909f73ac28d123ece28c5",
      "old_mode": 33188,
      "old_path": "http2-tests/src/test/scala/org/apache/pekko/http/impl/engine/http2/Http2ServerSpec.scala",
      "new_id": "89d47c789f6e46fd0d26f8c37e4dc1745d5770e3",
      "new_mode": 33188,
      "new_path": "http2-tests/src/test/scala/org/apache/pekko/http/impl/engine/http2/Http2ServerSpec.scala"
    },
    {
      "type": "modify",
      "old_id": "5bbc82cce82cbbf139c000a0e95338cd09a16009",
      "old_mode": 33188,
      "old_path": "http2-tests/src/test/scala/org/apache/pekko/http/impl/engine/http2/RequestParsingSpec.scala",
      "new_id": "97f389b9d7ba61572718482b5ffe545861e1ae30",
      "new_mode": 33188,
      "new_path": "http2-tests/src/test/scala/org/apache/pekko/http/impl/engine/http2/RequestParsingSpec.scala"
    }
  ]
}
