activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuco...@apache.org
Subject [2/2] activemq-artemis git commit: ARTEMIS-1824 running broker from path with non-ascii chars
Date Wed, 25 Apr 2018 19:22:08 GMT
ARTEMIS-1824 running broker from path with non-ascii chars


Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/0041f7bb
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/0041f7bb
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/0041f7bb

Branch: refs/heads/master
Commit: 0041f7bbac33c2d54e378751c258e5a11dfc6cc6
Parents: 02a7a98
Author: Stanislav Knot <sknot@redhat.com>
Authored: Mon Apr 23 15:12:01 2018 +0200
Committer: Clebert Suconic <clebertsuconic@apache.org>
Committed: Wed Apr 25 15:14:40 2018 -0400

----------------------------------------------------------------------
 .../src/main/java/org/apache/activemq/artemis/utils/XMLUtil.java   | 2 +-
 artemis-distribution/src/test/scripts/validate-spaces.sh           | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/0041f7bb/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/XMLUtil.java
----------------------------------------------------------------------
diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/XMLUtil.java
b/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/XMLUtil.java
index 890130c..5c8af6a 100644
--- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/XMLUtil.java
+++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/XMLUtil.java
@@ -323,7 +323,7 @@ public final class XMLUtil {
    public static void validate(final Node node, final String schemaFile) throws Exception
{
       SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
 
-      Schema schema = factory.newSchema(findResource(schemaFile));
+      Schema schema = factory.newSchema(new URL(findResource(schemaFile).toURI().toASCIIString()));
       Validator validator = schema.newValidator();
 
       // validate the DOM tree

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/0041f7bb/artemis-distribution/src/test/scripts/validate-spaces.sh
----------------------------------------------------------------------
diff --git a/artemis-distribution/src/test/scripts/validate-spaces.sh b/artemis-distribution/src/test/scripts/validate-spaces.sh
index 3917733..fd9c21c 100755
--- a/artemis-distribution/src/test/scripts/validate-spaces.sh
+++ b/artemis-distribution/src/test/scripts/validate-spaces.sh
@@ -18,4 +18,4 @@
 
 # This script will validate the distribution works with folders with spaces on Linux machines
 
-./validate-instalation.sh with\ spaces\ And\ Weird\ %26\ Characters
+./validate-instalation.sh with\ spaces\ And\ Weird\ %26\ Characters\ Čeština\ 漢字\ водка\
昨夜のコ\ ﷹ‬ﷸ‬
\ No newline at end of file


Mime
View raw message