eclipse-ee4j / eclipse-ee4j/jersey

LoggingFeature breaks JSON content

Open
#3,404 3 comments 0 reactions 0 assignees View on GitHub
Client Component: core jdk8 logging Priority: Major Type: Bug
Dominant language
Java
Stars
730
Forks
382
PR merge metrics
No merged PRs in 30d

Description

Registered the LoggingFeature for client side request and response logging.
After configuring to perfom logging (setting log level to info, verbosity to PAYLOAD_TEXT) the logged JSON response is missing the first brace and deserialization of the JSON object is not possible (due to the missing brace) on client side.
After changing the log level to finest (which is not logged) or removing the LoggingFeature the deserialization of JSON objects on client side is possible.
This does happen occasionally (84 of 100 tests failed).
The server side transfer encoding is chunked.
This also happens with 2.22.1 and LoggingFilter.
#### Environment
win7 64-bit, java 8, jersey client
#### Affected Versions
[2.23.1]

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.