Uploaded image for project: 'Commons OGNL (Dormant)'
  1. Commons OGNL (Dormant)
  2. OGNL-66

Ternary evaluates unused expression

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 2.7
    • 2.7
    • ExpressionCompiler
    • None
    • Tapestry 4.1.2 snapshot from 5-7, OGNL 2.7 snapshot from 5-5, WinXP, Firefox 2

    Description

      The following expression evaluates properly in OGNL 2.6 and outputs "1":

      <span jwcid="@Insert" value="ognl:true ? 1 : 1/0" />

      In OGNL 2.7 it evaluates the 1/0 and you get the error page with a divide by zero error. The unused expression should not be evaluated because it may not be valid (in more useful ways than this contrived example).

      Attachments

        Activity

          People

            jkuhnert Jesse Kuhnert
            dotteben Ben Dotte
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: