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

xhtml script setSrc() doesn't convert to a valid URL to a browser

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 8.0.5
    • Fix Version/s: 8.5.0
    • Component/s: None
    • Security Level: Jimmy
    • Labels:
      None

      Description

      Steps to Reproduce

      1. load the attached zul
      2. click the button

      Current Result

      invalid or unexpected token

      Expected Result

      Debug Info

      au response:
      {"rs":[["setAttr",[{$u:'myscript'},"dynamicProperty",["src",[email protected]]]]],"rid":1}

      Root Cause

      else if ("src".equals(name)) {
      			// ZK-3011: should defer until render
      			EncodedURL url = new EncodedURL(sval);
      			setDynaProp(name, url);
      			smartUpdate("dynamicProperty", new Object[] { name, url }, true);
      			return;
      

      Workaround

        Attachments

          Activity

            People

            Assignee:
            DevChu DevChu
            Reporter:
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 30 minutes
                30m