[
https://issues.apache.org/jira/browse/CAMEL-13621?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16858704#comment-16858704
]
Claus Ibsen commented on CAMEL-13621:
-------------------------------------
Looks a bit weird that your test case is not a sample of what you report.
This feature in camel is to mask camel endpoint uris, not big arbitrary text
with many new lines and whatnot.
Can you provide a use-case of a camel endpoint uri which has a password option
which dont get masked?
> DefaultMaskingFormatter: & is ignored as ending character
> ---------------------------------------------------------
>
> Key: CAMEL-13621
> URL: https://issues.apache.org/jira/browse/CAMEL-13621
> Project: Camel
> Issue Type: Bug
> Affects Versions: 2.20.2
> Environment: Camel 2.20.2
> Oracle JDK 8u121
> Reporter: Christoph Giera
> Priority: Major
> Attachments: FormatTest.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)