fizzbeom commented on PR #4421: URL: https://github.com/apache/logging-log4j2/pull/4421#issuecomment-6590681781
> Do we have any open issue, if these tests really required ? There's no open issue — this PR doesn't fix a bug, it only adds coverage. `GelfLayout` writes its JSON by hand and relies entirely on `JsonUtils.quoteAsString` for escaping, while the existing tests only check quotes and a few control characters (`JsonUtilsTest`) and don't check that a `GelfLayout` event with special characters in its fields still parses as valid JSON, or that the NUL/LF delimiter only appears at the end. A regression there would silently break GELF framing on the receiving side (e.g. Graylog), so these tests are meant as a regression guard. I verified they fail when escaping is removed. If you'd prefer, I can open an issue to track it, or close the PR if the maintainers don't think the extra coverage is worth it. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
