Author: jim.ma
Date: 2015-06-01 03:16:28 -0400 (Mon, 01 Jun 2015)
New Revision: 19763
Modified:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/endorse/EndorseTestCase.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/clientConfig/META-INF/default-client-permissions.xml
Log:
Fix permission failures in EndorseTestCase
Modified:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/endorse/EndorseTestCase.java
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/endorse/EndorseTestCase.java 2015-06-01
06:45:57 UTC (rev 19762)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/endorse/EndorseTestCase.java 2015-06-01
07:16:28 UTC (rev 19763)
@@ -61,6 +61,7 @@
+ "Dependencies: org.jboss.ws.cxf.jbossws-cxf-client services
export\n"))
.addClass(org.jboss.test.ws.jaxws.cxf.endorse.Helper.class)
.addClass(org.jboss.test.ws.jaxws.cxf.endorse.TestServlet.class)
+ .addAsManifestResource(new File(JBossWSTestHelper.getTestResourcesDir() +
"/jaxws/cxf/endorse/WEB-INF/permissions.xml"), "permissions.xml")
.setWebXML(new File(JBossWSTestHelper.getTestResourcesDir() +
"/jaxws/cxf/endorse/WEB-INF/web.xml"));
return archive;
}
@@ -72,6 +73,7 @@
+ "Dependencies: org.jboss.ws.cxf.jbossws-cxf-client
services\n"))
.addClass(org.jboss.test.ws.jaxws.cxf.endorse.Helper.class)
.addClass(org.jboss.test.ws.jaxws.cxf.endorse.TestServlet.class)
+ .addAsManifestResource(new File(JBossWSTestHelper.getTestResourcesDir() +
"/jaxws/cxf/endorse/WEB-INF/permissions.xml"), "permissions.xml")
.setWebXML(new File(JBossWSTestHelper.getTestResourcesDir() +
"/jaxws/cxf/endorse/WEB-INF/web.xml"));
return archive;
}
Modified:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/clientConfig/META-INF/default-client-permissions.xml
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/clientConfig/META-INF/default-client-permissions.xml 2015-06-01
06:45:57 UTC (rev 19762)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/clientConfig/META-INF/default-client-permissions.xml 2015-06-01
07:16:28 UTC (rev 19763)
@@ -5,7 +5,43 @@
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
http://xmlns.jcp.org/xml/ns/javaee/permissions_7.xsd"
version="7">
<permission>
+ <class-name>java.security.AllPermission</class-name>
+ </permission>
+ <!-- TODO: Look at why grant org.jboss.as.server.security.ServerPermission
doesn't work-->
+ <!--permission>
+ <class-name>java.lang.RuntimePermission</class-name>
+ <name>org.jboss.ws.LOOKUP_SERVER_INTEGRATION_SERVER_CONFIG</name>
+ </permission>
+ <permission>
<class-name>org.jboss.as.server.security.ServerPermission</class-name>
<name>getCurrentServiceContainer</name>
</permission>
+ <permission>
+ <class-name>java.lang.RuntimePermission</class-name>
+ <name>getClassLoader</name>
+ </permission>
+ <permission>
+ <class-name>java.lang.RuntimePermission</class-name>
+ <name>createClassLoader</name>
+ </permission>
+ <permission>
+ <class-name>java.lang.RuntimePermission</class-name>
+ <name>org.apache.cxf.permission</name>
+ <actions>resolveUri</actions>
+ </permission>
+ <permission>
+ <class-name>java.util.PropertyPermission</class-name>
+ <name>user.dir</name>
+ <actions>read</actions>
+ </permission>
+ <permission>
+ <class-name>java.net.SocketPermission</class-name>
+ <name>*</name>
+ <actions>connect,resolve</actions>
+ </permission>
+ <permission>
+ <class-name>java.io.FilePermission</class-name>
+ <name><<ALL FILES>></name>
+ <actions>read</actions>
+ </permission-->
</permissions>