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

Don't check for disallowed ognl expressions if getting from expression cache

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3.15.1
    • Fix Version/s: 2.3.16
    • Component/s: Expression Language
    • Labels:
    • Flags:
      Patch

      Description

      When the ognl expression cache is enabled, when there is a cache hit, we don't need to have the overhead of traversing the tree to see if there is a disallowed expression. I've attached a simple patch.

        Attachments

        1. OgnlUtil.java.patch
          1 kB
          Jasper Rosenberg

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: