You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by cl...@apache.org on 2016/02/01 16:07:26 UTC
[1/2] activemq-artemis git commit: ARTEMIS-377 - [Artemis Testsuite]
NettySecurityClientTest#testProducerConsumerClientWithSecurityManager fails
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 <ed...@redhat.com>
Authored: Mon Feb 1 10:27:37 2016 +0100
Committer: Clebert Suconic <cl...@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";
};
[2/2] activemq-artemis git commit: This closes #363
Posted by cl...@apache.org.
This closes #363
Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/ced803ed
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/ced803ed
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/ced803ed
Branch: refs/heads/master
Commit: ced803eda46bde30ef19416a7176aeb73983020c
Parents: 7ca42ef 0db2d3f
Author: Clebert Suconic <cl...@apache.org>
Authored: Mon Feb 1 10:06:13 2016 -0500
Committer: Clebert Suconic <cl...@apache.org>
Committed: Mon Feb 1 10:06:13 2016 -0500
----------------------------------------------------------------------
.../tests/integration/security/NettySecurityClientTest.java | 3 ++-
.../src/test/resources/restricted-security-client.policy | 1 +
2 files changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------