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

ASF subversion and git services commented on NIFI-1915:
-------------------------------------------------------

Commit 93795bc7ba411077649351b935cb15970a7c417f in nifi's branch 
refs/heads/master from [~ozhurakousky]
[ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=93795bc ]

NIFI-1915 Fixed '$' escape logic.
Fixed '$' escape logic (if not followed by number) to use 
Matcher.quoteReplacement(java.lang.String) to
suppress its special meaning so it could be treated as literal.

This closes #466.

Signed-off-by: Pierre Villard <[email protected]>


> ReplaceText infinite loops when attribute contains $ sign
> ---------------------------------------------------------
>
>                 Key: NIFI-1915
>                 URL: https://issues.apache.org/jira/browse/NIFI-1915
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 0.6.1
>            Reporter: Stephane Maarek
>            Assignee: Oleg Zhurakousky
>            Priority: Critical
>             Fix For: 1.0.0, 0.7.0
>
>
> I think the biggest issue is that the text inside of an attribute isn't 
> properly escaped when written to a String, which brings conflict when the 
> text contains dollar signs ($)
> That's a big roadblock for me as I can't predict if and when some $ signs may 
> be present in the data
> An easy way to reproduce is to take the csv to json template here:
> https://cwiki.apache.org/confluence/download/attachments/57904847/CsvToJSON.xml?version=1&modificationDate=1442927496000&api=v2
>  
> In the first ReplaceText, replace a,b,c,d by a$a,b,c,d (it simulates data 
> that may or may not contain a $ sign)
> Launch the flow, you'll see the errors / warning / infinite loop



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to