Skip to content

Commit

Permalink
[RESTEASY-1963] added read permission
Browse files Browse the repository at this point in the history
  • Loading branch information
rsearls authored and asoldano committed Jul 30, 2018
1 parent 2300acc commit 6d486cd
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -11,6 +11,7 @@
import org.jboss.resteasy.test.core.basic.resource.ContextEndInterceptor;
import org.jboss.resteasy.test.core.basic.resource.ContextService;
import org.jboss.resteasy.util.HttpResponseCodes;
import org.jboss.resteasy.utils.PermissionUtil;
import org.jboss.resteasy.utils.PortProviderUtil;
import org.jboss.shrinkwrap.api.Archive;
import org.jboss.shrinkwrap.api.ShrinkWrap;
Expand All @@ -21,6 +22,7 @@
import org.junit.Test;
import org.junit.runner.RunWith;
import javax.ws.rs.core.Response;
import java.io.FilePermission;

/**
* @tpSubChapter Resteasy-client
Expand All @@ -42,6 +44,10 @@ public static Archive<?> deploy() {
ContextEncoderInterceptor.class, ContextEndInterceptor.class);
war.addAsWebInfResource(ContextTest.class.getPackage(), "ContextIndex.html", "index.html");
war.addAsWebInfResource(ContextTest.class.getPackage(), "ContextWeb.xml", "web.xml");
// undertow requires read permission in order to perform forward request.
war.addAsManifestResource(PermissionUtil.createPermissionsXmlAsset(
new FilePermission("<<ALL FILES>>", "read")
), "permissions.xml");
return war;
}

Expand Down

0 comments on commit 6d486cd

Please sign in to comment.