[ https://issues.apache.org/jira/browse/CAMEL-13621?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16860799#comment-16860799 ]
Christoph Giera commented on CAMEL-13621: ----------------------------------------- It's not so easy to show or explain the StackOverflowError, I've attached 2 screenshots which are the results of the same test(FormatTest.java). Executing this test results in ~50% errors(see ExecuteTest_2.PNG) and ~50% success(see ExecuteTest_1.PNG). This is really weird because it's the same test. Maybe it has something to do with [https://bugs.openjdk.java.net/browse/JDK-6328855] but I'm not sure. > 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: Minor > 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)