Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-5002

shadow element - parameter leak

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 8.0.0, 9.6.0
    • Fix Version/s: 9.6.1
    • Component/s: Databind 2
    • Security Level: Jimmy

      Description

      Steps to Reproduce

      run the attached example if-parameter-leak.zul

      the example renders template contents dynamically based on the "vis" flag.
      true -> render (default value if parameter omitted)
      false -> don't render

      Current Result

      the rows for "value4" and "value6" are missing even though the "vis" parameter was not set.

      Expected Result

      all rows except "value3" (which uses vis="${false}") should render

      Debug Information

      the parameter vis-false of row-value3 is leaking into the subsequent omitted vis parameters.

      the file if-parameter-leak-debug-info.zul renders additional information, showing that the same expression ${vis || vis eq null} inside the template sometimes evaluates correctly and sometimes fails using the leaked parameter value

      Workaround

      specify the "vis" parameter for every row, don't omit parameters.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jumperchen jumperchen
              Reporter:
              cor3000 cor3000
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: