Uploaded image for project: 'Commons OGNL'
  1. Commons OGNL
  2. OGNL-35

CLONE -expression concatenated via "and" / "&&" is not evaluated correctly

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7
    • Fix Version/s: 2.7
    • Component/s: ExpressionCompiler
    • Labels:
      None
    • Environment:
      tapestry

      Description

      having a condition like:

      condition="ognl:condition1 && condition2"

      condition2 gets evaluatated, even if condition1 returns false

      in version 2.6.9 it worked correctly

      the manual says explicitly:

      e1 && e2, e1 and e2

      getValue is called on e1 and the result is interpreted as a boolean. If false, that result is returned; if true, getValue is called on e2 and its value is returned.

        Attachments

          Activity

            People

            • Assignee:
              jkuhnert Jesse Kuhnert
              Reporter:
              mvalverde Marco Valverde
            • Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: