You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Daniel Holm (Jira)" <ji...@apache.org> on 2024/10/14 13:56:00 UTC

[jira] [Created] (CXF-9066) MaskSensitiveHelper does not mask multi-line content

Daniel Holm created CXF-9066:
--------------------------------

             Summary: MaskSensitiveHelper does not mask multi-line content
                 Key: CXF-9066
                 URL: https://issues.apache.org/jira/browse/CXF-9066
             Project: CXF
          Issue Type: Bug
          Components: logging
    Affects Versions: 4.0.5
            Reporter: Daniel Holm


MaskSensitiveHelper does not recognise the sensitive element name(s) if they contain multi-line content.


This f.ex does not match the password element, and the data is left unmasked in the logs:
{code:java}
maskSensitiveHelper.addSensitiveElementNames(Set.of("password")) {code}
{code:java}
<user>testUser</user><password>my 
secret 
password</password> {code}
 

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)