Christopher Jackson created OOZIE-2749:
------------------------------------------
Summary: Logging command arguments fails in certain scenarios when
using EL functions.
Key: OOZIE-2749
URL: https://issues.apache.org/jira/browse/OOZIE-2749
Project: Oozie
Issue Type: Bug
Affects Versions: 4.3.0
Environment: All
Reporter: Christopher Jackson
Change were recently made in OOZIE-2244 to mask passwords in logs when printing
arguments. These changes cause failures in workflows that use basic EL
functions that result in null values.
For instance if someone is using the EL replaceAll function and it returns an
empty string as a result (which is considered null) the following code fails
(https://github.com/apache/oozie/commit/3276633f3002ad7e9096c4ee5b6c329f5a708248):
{code}
if (arg.toLowerCase().contains("password"))
{code}
This was working previously because at some point the null does get converted
to an empty string, but it's after the point in which the args are printed.
An example of an EL function causing this failure, where property foo was equal
to "ALL":
{code}
<arg>${replaceAll(foo, "^[aA][lL][lL]$", "")}</arg>
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)