-
Bug
-
Resolution: Fixed
-
Normal
-
Freshly, 9.0.0
-
Security Level: Jimmy
Steps to Reproduce
load pdf from CWR
<pdfviewer id="pdf2" src="~./test.pdf" height="300px"/> <button label="test2" onClick='pdf2.setSrc("~./test2.pdf");'/>
load pdf from absolute path (when using a webapp context path)
<pdfviewer id="pdf3" src="/resources/pdf/test.pdf" height="300px"/> <button label="test3" onClick='pdf3.setSrc("/resources/pdf/test2.pdf");'/>
Current Result
calling setSrc() with a CWR path or absolute path results in failing download URLs, due missing URL encoding
Expected Result
working URL encoding
Debug Information
_src is not encoded
public void setSrc(String src) { if (!Objects.equals(_src, src)) { _src = src; _content = null; _activePage = 0; smartUpdate("src", _src); } }
Workaround
- relates to
-
ZK-4395 Provide a pdfviewer component
- Closed