[
https://issues.apache.org/jira/browse/NIFI-6186?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16809962#comment-16809962
]
ASF subversion and git services commented on NIFI-6186:
-------------------------------------------------------
Commit c93ee5ad5949858bd3f4eec2067ae30016ea76ac in nifi's branch
refs/heads/master from ambah
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=c93ee5a ]
NIFI-6186 Resolve handling of module paths in JythonScriptEngineConfigurator
Signed-off-by: Matthew Burgess <[email protected]>
This closes #3406
> JythonScriptEngineConfigurator fails to account for Python escaping in Module
> Directory property
> ------------------------------------------------------------------------------------------------
>
> Key: NIFI-6186
> URL: https://issues.apache.org/jira/browse/NIFI-6186
> Project: Apache NiFi
> Issue Type: Bug
> Components: Extensions
> Reporter: Andrew Mathis
> Priority: Major
> Time Spent: 20m
> Remaining Estimate: 0h
>
> Currently, JythonScriptEngineConfigurator (in its init() method) incorporates
> the module directory list (as derived from the Module Directory property
> value) into evaluated Jython code as string literals without any regard to
> how the paths will be interpreted in Jython. This means that Module Directory
> paths that include Jython escape sequences (e.g. "\a", "\1") will be
> mis-interpreted in Jython execution. Rather than interpreting paths directly
> as Python string literals, a method like PyString.encode_UnicodeEscape should
> be used to translate the Java strings into appropriate Jython string literals.
> This issue will be especially relevant in Windows, where paths will often
> contain backslashes.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)