activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuco...@apache.org
Subject [1/2] activemq-artemis git commit: ARTEMIS-377 - [Artemis Testsuite] NettySecurityClientTest#testProducerConsumerClientWithSecurityManager fails
Date Mon, 01 Feb 2016 15:07:26 GMT
Repository: activemq-artemis
Updated Branches:
  refs/heads/master 7ca42ef35 -> ced803eda


ARTEMIS-377 - [Artemis Testsuite] NettySecurityClientTest#testProducerConsumerClientWithSecurityManager
fails


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

Branch: refs/heads/master
Commit: 0db2d3f09792d824e6cb99c61a50439bac02b4f5
Parents: 7ca42ef
Author: Erich Duda <eduda@redhat.com>
Authored: Mon Feb 1 10:27:37 2016 +0100
Committer: Clebert Suconic <clebertsuconic@apache.org>
Committed: Mon Feb 1 10:06:12 2016 -0500

----------------------------------------------------------------------
 .../tests/integration/security/NettySecurityClientTest.java       | 3 ++-
 .../src/test/resources/restricted-security-client.policy          | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/0db2d3f0/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/security/NettySecurityClientTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/security/NettySecurityClientTest.java
b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/security/NettySecurityClientTest.java
index c1a9012..ad71d26 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/security/NettySecurityClientTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/security/NettySecurityClientTest.java
@@ -19,6 +19,7 @@ package org.apache.activemq.artemis.tests.integration.security;
 import java.io.BufferedReader;
 import java.io.InputStreamReader;
 import java.net.URL;
+import java.net.URLDecoder;
 
 import org.apache.activemq.artemis.core.config.impl.ConfigurationImpl;
 import org.apache.activemq.artemis.core.server.ActiveMQServer;
@@ -60,7 +61,7 @@ public class NettySecurityClientTest extends ActiveMQTestBase {
       String[] vmargs = new String[0];
       if (withSecurityManager) {
          URL securityPolicyURL = Thread.currentThread().getContextClassLoader().getResource("restricted-security-client.policy");
-         vmargs = new String[]{"-Djava.security.manager", "-Djava.security.policy=" + securityPolicyURL.getPath()};
+         vmargs = new String[]{"-Djava.security.manager", "-Djava.security.policy=" + URLDecoder.decode(securityPolicyURL.getPath(),
"UTF-8")};
       }
 
       // spawn a JVM that creates a client with a security manager which sends and receives
a

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/0db2d3f0/tests/integration-tests/src/test/resources/restricted-security-client.policy
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/resources/restricted-security-client.policy
b/tests/integration-tests/src/test/resources/restricted-security-client.policy
index 40a2559..c374deb 100644
--- a/tests/integration-tests/src/test/resources/restricted-security-client.policy
+++ b/tests/integration-tests/src/test/resources/restricted-security-client.policy
@@ -57,4 +57,5 @@ grant {
         permission java.util.PropertyPermission "sun.nio.ch.bugLevel", "read";
         permission java.lang.RuntimePermission "setContextClassLoader";
         permission java.lang.RuntimePermission "accessDeclaredMembers";
+        permission java.lang.RuntimePermission "accessClassInPackage.sun.misc";
 };


Mime
View raw message