From: Luis Bernardo Date: Wed, 25 Sep 2013 23:09:55 +0000 (+0000) Subject: FOP-2107: org.apache.batik.bridge.BridgeException: Unable to make sense of URL for... X-Git-Tag: fop-2_0~181 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bd40eedf996567982667e5987f64be54df417f1e;p=xmlgraphics-fop.git FOP-2107: org.apache.batik.bridge.BridgeException: Unable to make sense of URL for connection; patch suggested by Matthias Reischenbacher and Robert Meyer comments. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1526329 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/apps/FOUserAgent.java b/src/java/org/apache/fop/apps/FOUserAgent.java index 68064343e..8b9e079ab 100644 --- a/src/java/org/apache/fop/apps/FOUserAgent.java +++ b/src/java/org/apache/fop/apps/FOUserAgent.java @@ -408,7 +408,7 @@ public class FOUserAgent { try { // Have to do this so we can resolve data URIs StreamSource src = new StreamSource(resourceResolver.getResource(uri)); - src.setSystemId(uri); + src.setSystemId(new File(uri).toURI().toURL().toExternalForm()); return src; } catch (URISyntaxException use) { return null;