ppkarwasz opened a new pull request, #4073:
URL: https://github.com/apache/logging-log4j2/pull/4073

   This change corrects the sanitization of `PARAM-NAME` in RFC 5424 structured 
data produced by `Rfc5424Layout`.
   
   Previously, parameter names were sanitized using the same escaping mechanism 
as parameter values. However, RFC 5424 does not define an escape mechanism for 
`PARAM-NAME`; instead, names must follow the `SD-NAME` syntax 
(`1*32PRINTUSASCII` with additional character restrictions).
   
   This change enforces these constraints when rendering structured data 
parameters:
   
   * Invalid characters are replaced with `?`.
   * Parameter names are truncated to a maximum of **32 characters**.
   * If sanitization results in an empty name, `?` is used instead.
   
   This ensures that generated structured data complies with the RFC 5424 
grammar for `PARAM-NAME`.
   


-- 
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]

Reply via email to