eclipse-ee4j / eclipse-ee4j/jersey

Response committed prematurely in case of unsuccessful calls (4xx & 5xx responses)

Open
#3,382 7 comments 0 reactions 0 assignees View on GitHub
Priority: Critical Type: Bug
Dominant language
Java
Stars
730
Forks
382
PR merge metrics
No merged PRs in 30d

Description

From the tests attached it is evident that in case of unsuccessful responses, such as 404s, the response is immediately committed before it passes back through any servlet filters.

This means that if a filter is responsible for altering the response in some way, it will fail in case of erroneous responses.
#### Affected Versions
[2.22.2]

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.