Skip to content

Commit

Permalink
Merge pull request wildfly#18317 from rhusar/WFLY-17968
Browse files Browse the repository at this point in the history
WFLY-17968 Missing permissions in InfinispanCounterTestCase
  • Loading branch information
jamezp authored Nov 5, 2024
2 parents eb359d3 + 65d1b73 commit 429621f
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 429621f

Please sign in to comment.