[ 
https://issues.apache.org/jira/browse/CAMEL-13621?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16861917#comment-16861917
 ] 

Christoph Giera commented on CAMEL-13621:
-----------------------------------------

The use-case is pretty simple:

We trace our route executions in a DB table. E.g. if an error occured we store 
it in a DB field . It's possible that this information contains sensitive 
data(like password in a camel uri). I knew that there exists a solution for 
masking in the camel framework because the log component has a masking option 
and there I found the DefaultMaskingFormatter. I thought "when the log 
component uses this I can also use it :) "

> DefaultMaskingFormatter: & is ignored as ending character
> ---------------------------------------------------------
>
>                 Key: CAMEL-13621
>                 URL: https://issues.apache.org/jira/browse/CAMEL-13621
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.20.2
>         Environment: Camel 2.20.2
> Oracle JDK 8u121/OpenJDK 11.0.3
>  
>            Reporter: Christoph Giera
>            Priority: Minor
>             Fix For: 3.0.0
>
>         Attachments: ExecuteTest_1.PNG, ExecuteTest_2.PNG, FormatTest.java, 
> FormatUriTest.java
>
>
> Using the DefaultMaskingFormatter and formatting a string that contains for 
> example
> {noformat}
> password=mypass&nextParameter=nextvalue{noformat}
> should be masked to 
> {noformat}
> password="xxxxx"&nextParameter=nextvalue{noformat}
> Instead of this the & is ignored(the next parameter will swallowed up) and 
> the output looks like the following
> {noformat}
> password="xxxxx"{noformat}
>  
> Additionaly StackoverflowErrors occur when formatting/masking bigger strings 
> with line breaks, see example attached.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to