eclipse-ee4j / eclipse-ee4j/jersey
Usage of JacksonFilteringFeature produces empty or incomplete JSON as response.
- Dominant language
- Java
- Stars
- 730
- Forks
- 382
- PR merge metrics
- No merged PRs in 30d
Description
The cached FilterProvider of an entity type keeps an internal state to control nested rendering. When a thread is doing a stack.clear() and at the same time another thread is doing a stack.peek() it throws an exception, causing a failure during rendering of fields at BeanSerializerBase.
#### Affected Versions
[2.22]
Contributor guide
Research direction
Start by inspecting JacksonFilteringFeature and the rendering path at BeanSerializerBase, focusing on the shared FilterProvider state and concurrent stack.clear() and stack.peek() operations. Reproduce the failure with concurrent rendering; done means responses are complete and no rendering exception occurs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100