1
0
apache-commons-chain/commons-chain-1.2-digester.patch

37 lines
1022 B
Diff

--- commons-chain-1.2-src/src/java/org/apache/commons/chain/config/ConfigParser.java 2008-05-29 18:43:15.000000000 +0200
+++ commons-chain-1.2-src/src/java/org/apache/commons/chain/config/ConfigParser.java 2018-12-21 16:03:07.675014800 +0100
@@ -17,6 +17,7 @@
package org.apache.commons.chain.config;
+import java.net.URISyntaxException;
import java.net.URL;
import org.apache.commons.chain.Catalog;
import org.apache.commons.digester.Digester;
@@ -164,7 +164,11 @@
digester.push(catalog);
// Parse the configuration document
- digester.parse(url);
+ try {
+ digester.parse(url.toURI().toString());
+ } catch (URISyntaxException e) {
+ throw new Exception(e);
+ }
}
@@ -187,7 +191,11 @@
digester.clear();
// Parse the configuration document
- digester.parse(url);
+ try {
+ digester.parse(url.toURI().toString());
+ } catch (URISyntaxException e) {
+ throw new Exception(e);
+ }
}