Skip to content

Commit

Permalink
WFLY-17968 Missing permissions in InfinispanCounterTestCase
Browse files Browse the repository at this point in the history
  • Loading branch information
rhusar committed Oct 27, 2024
1 parent 956cd9a commit 65d1b73
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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("<<ALL FILES>>", "read,write"),
new RuntimePermission("getClassLoader")
), "permissions.xml")
;
}

Expand Down

0 comments on commit 65d1b73

Please sign in to comment.