[
https://issues.apache.org/jira/browse/OOZIE-3367?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16648958#comment-16648958
]
Julia Kinga Marton commented on OOZIE-3367:
-------------------------------------------
[~satishsaley], can you please check if TestBundleSubmitXCommand can be
extended one test case covering this issue?
I have noticed that the implementation of
{code:java}
ELUtils#resolvEnabled(String expression, Configuration conf){code}
is almost the same as
{code:java}
ELUtils#resolveAppName(String name, Configuration conf){code}
Also, there are some places when resolveAppName is used for resolving other
expressions than the name. This can be a little confusing.
Wouldn't be better to have instead of this two methods only one containing a
third parameter of type class? Something like:
{code:java}
public static <T> T resolveExpression(String expression, Configuration conf,
Class <T> clazz){code}
> Using && in EL expressions in oozie bundle.xml files generates parse errors
> ---------------------------------------------------------------------------
>
> Key: OOZIE-3367
> URL: https://issues.apache.org/jira/browse/OOZIE-3367
> Project: Oozie
> Issue Type: Bug
> Reporter: Satish Subhashrao Saley
> Assignee: Satish Subhashrao Saley
> Priority: Major
> Attachments: OOZIE-3367-1.patch, OOZIE-3367-2.patch
>
>
> [[email protected]]reported -
> I need to put a logical AND into an expression in an oozie bundle (in the
> enabled flag on the coordinator). When I try "{{A && B}}", oozie gives me a
> perfectly understandable error about this being invalid XML ({{XML schema
> error, The entity name must immediately follow the '&' in the entity
> reference.}}). But when I try to replace this with an XML entity ({{A &&
> B}}), I get an unexpected error that seems to indicate that a space (or
> something else) is getting injected unexpectedly into my expression:
> {noformat}
> Bundle Job submission Error: [E1004: Expression language evaluation error,
> Encountered "&", expected one of ["}", ".", ">", "gt", "<", "lt", "==", "eq",
> "<=", "le", ">=", "ge", "!=", "ne", "[", "+", "-", "*", "/", "div", "%",
> "mod", "and", "&&", "or", "||", ":", "(", "?"]]
> {noformat}
> Any idea how I can get the expression "A && B" to be parsed correctly in an
> oozie bundle.xml file?
> It turned out to be a bug in Oozie.
>
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)