eclipse-ee4j / eclipse-ee4j/jersey
POST requests corrupted in Jersey filter deployment mode
Open
notabug
- Dominant language
- Java
- Stars
- 730
- Forks
- 382
- PR merge metrics
- No merged PRs in 30d
Description
Hello Jersey community!
I'm using Jersey 2.30.1 (as part of spring-boot 2.3.4.RELEASE) and found following bug/suspicious behavior: when Jersey deployed as a filter and incoming POST request (actually any with request body) is going to servlet behind the filter it is impossible to read request parameters in servlet correctly since Jersey consumes request input stream and parameters are always empty (as the input stream as well). I tested jetty and tomcat and result is the same.
Test to reproduce the issue: https://gist.github.com/zhv/e667fb83494014a79320160b669acccd
Contributor guide
Assessment
This issue has not been assessed yet.