From 65d1b73072217de3973b9bcad92f2e0cb0c6d193 Mon Sep 17 00:00:00 2001 From: Radoslav Husar Date: Tue, 22 Oct 2024 12:24:27 +0200 Subject: [PATCH] WFLY-17968 Missing permissions in InfinispanCounterTestCase --- .../infinispan/counter/InfinispanCounterTestCase.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/testsuite/integration/clustering/src/test/java/org/jboss/as/test/clustering/cluster/infinispan/counter/InfinispanCounterTestCase.java b/testsuite/integration/clustering/src/test/java/org/jboss/as/test/clustering/cluster/infinispan/counter/InfinispanCounterTestCase.java index cb0be2cd2ab9..4e3d133a081b 100644 --- a/testsuite/integration/clustering/src/test/java/org/jboss/as/test/clustering/cluster/infinispan/counter/InfinispanCounterTestCase.java +++ b/testsuite/integration/clustering/src/test/java/org/jboss/as/test/clustering/cluster/infinispan/counter/InfinispanCounterTestCase.java @@ -5,6 +5,9 @@ package org.jboss.as.test.clustering.cluster.infinispan.counter; +import static org.jboss.as.test.shared.PermissionUtils.createPermissionsXmlAsset; + +import java.io.FilePermission; import java.io.IOException; import java.net.URISyntaxException; import java.net.URL; @@ -67,6 +70,11 @@ private static Archive createDeployment() { .addPackage(InfinispanCounterServlet.class.getPackage()) .setManifest(new StringAsset("Manifest-Version: 1.0\nDependencies: org.infinispan, org.infinispan.commons, org.infinispan.counter\n")) .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml") + .addAsManifestResource(createPermissionsXmlAsset( + // WFLY-17968 + new FilePermission("<>", "read,write"), + new RuntimePermission("getClassLoader") + ), "permissions.xml") ; }