Invalid HTTP/2 request headers return 400 Bad Request instead of GOAWAY#961
Invalid HTTP/2 request headers return 400 Bad Request instead of GOAWAY#961pjfanning wants to merge 6 commits intoapache:mainfrom
Conversation
… bad request responses Co-authored-by: pjfanning <11783444+pjfanning@users.noreply.github.com>
…port, remove unused @nowarn Co-authored-by: pjfanning <11783444+pjfanning@users.noreply.github.com>
328dcec to
4b192de
Compare
|
there are 5 test failures in org.apache.pekko.http.impl.engine.http2.H2SpecIntegrationSpec - I may have made a mistake in code but it could be that this change just breaks these tests the test failures look legit in that they fail because bad headers now cause Bad Request response instead of a GOAWAY DataFrame. I'm not sure why the akka-http PR does not include a change to the H2SpecIntegrationSpec and there are no other changes to it in the 10.5.0 release |
|
In a recent run in akka-http these tests show all up as IGNORED, so I think they are/were not checked. Details |
|
I'd say the test failures are somewhat legit. Right now these kind of parsing errors are all treated with a 400 Bad Request response. However, the cases flagged by the test are all cases of transport/protocol style errors that a valid client should not make (wrong-pseudo headers, illegal usage of Not terribly important, so could also make sense to list the failing tests as pending and create an issue to look into changing the behavior for these particular cases. |
akka/akka-http#4227 is now available under Apache license
See #960 and #59