Steps to Reproduce
load a zul page with a chart
open developer tools (e.g. chrome)
Current Result
Jan 15, 2020 12:59:46 PM org.eclipse.jetty.server.HttpChannel handleException WARNING: /zksupport9/zkau/web/_zv7.2.1.0/js/svg2pdf.js.map java.lang.StringIndexOutOfBoundsException: begin 0, end -1, length 18 at java.base/java.lang.String.checkBoundsBeginEnd(String.java:3319) at java.base/java.lang.String.substring(String.java:1874) at org.zkoss.zk.ui.http.WpdExtendlet$WpdLoader.getRealPath(WpdExtendlet.java:803) at org.zkoss.web.util.resource.ExtendletLoader.load(ExtendletLoader.java:104) at org.zkoss.web.util.resource.ExtendletLoader.load(ExtendletLoader.java:42) at org.zkoss.util.resource.ResourceCache$Info.load(ResourceCache.java:227) at org.zkoss.util.resource.ResourceCache$Info.<init>(ResourceCache.java:202) at org.zkoss.util.resource.ResourceCache.get(ResourceCache.java:134) at org.zkoss.zk.ui.http.WpdExtendlet.retrieve(WpdExtendlet.java:172) at org.zkoss.zk.ui.http.WpdExtendlet.service(WpdExtendlet.java:113) at org.zkoss.web.util.resource.ClassWebResource.web0(ClassWebResource.java:605) at org.zkoss.web.util.resource.ClassWebResource.web(ClassWebResource.java:592) at org.zkoss.web.util.resource.ClassWebResource.service(ClassWebResource.java:272) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:424)
Expected Result
either working source map download
or
meaningful error message or ignore missing source maps
Debug Information
there's a source mapping comment in the js code which is processed by the browser linking to a source which doesn't exist
Workaround
- relates to
-
ZKCHARTS-74 source map server error
- Resolved
-
ZK-3677 Support source maps for wpd files
- Closed
-
ZK-4485 Should return 404 when the sourceMappingURL is not found
- Closed