From: Luis Bernardo Date: Sun, 27 Jul 2014 16:25:25 +0000 (+0000) Subject: FOP-2107: org.apache.batik.bridge.BridgeException: Unable to make sense of URL for... X-Git-Tag: fop-2_0~90 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e5fd61ed972a5548675fbcc784d2693119fe548c;p=xmlgraphics-fop.git FOP-2107: org.apache.batik.bridge.BridgeException: Unable to make sense of URL for connection; implemented a better approach. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1613811 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/lib/batik-all-trunk.jar b/lib/batik-all-trunk.jar index 08c1a383a..e458266b9 100644 Binary files a/lib/batik-all-trunk.jar and b/lib/batik-all-trunk.jar differ diff --git a/lib/xmlgraphics-commons-svn-trunk.jar b/lib/xmlgraphics-commons-svn-trunk.jar index 6c5423697..944d63df5 100644 Binary files a/lib/xmlgraphics-commons-svn-trunk.jar and b/lib/xmlgraphics-commons-svn-trunk.jar differ diff --git a/src/java/org/apache/fop/apps/FOUserAgent.java b/src/java/org/apache/fop/apps/FOUserAgent.java index ca267fa8a..239261b84 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(new File(uri).toURI().toURL().toExternalForm()); + src.setSystemId(uri); return src; } catch (URISyntaxException use) { return null;