Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-4462

Regression bug in ognl for "is..." property getters

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.3.20
    • Fix Version/s: 2.3.28, 2.5
    • Component/s: Core Actions
    • Labels:

      Description

      We have a lot of getters on our actions that look like:

      public boolean getIsTruck() {
      return isTruck;
      }

      That lets us write ftl that looks like:

      <#if isTruck>...</#if>

      However, this support was broken in a recent ognl release, I believe by this patch:
      https://github.com/jkuhnert/ognl/commit/6fb948c8a4528546e6e24750f09a89b6a730e17a

      I don't see any reason why this pattern shouldn't be supported, so I'm assuming it is a bug.

      This is also keeping us from being able to upgrade to the latest ognl which has some critical fixes we were really hoping to take advantage of.

      Thanks!

        Attachments

          Activity

            People

            • Assignee:
              lukaszlenart Lukasz Lenart
              Reporter:
              perfnorm Jasper Rosenberg
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: