Author: jim.ma
Date: 2015-06-02 09:35:45 -0400 (Tue, 02 Jun 2015)
New Revision: 19773
Added:
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/resources/jaxws/endpoint/WEB-INF/permissions.xml
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/resources/jaxws/jbws2307/WEB-INF-client/permissions.xml
Modified:
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/endpoint/EndpointTestCase.java
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2307/JBWS2307MTOMTestCase.java
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/resources/jaxws/clientConfig/META-INF/permissions.xml
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/resources/jaxws/endpoint/META-INF/permissions.xml
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/resources/jaxws/jbws1581/META-INF/permissions.xml
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/resources/jaxws/jbws1841/META-INF/permissions.xml
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/resources/jaxws/jbws2000/META-INF/permissions.xml
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/resources/jaxws/jbws2257/META-INF/permissions.xml
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/resources/jaxws/jbws2268/META-INF/permissions.xml
Log:
Fix permission failures
Modified:
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/endpoint/EndpointTestCase.java
===================================================================
---
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/endpoint/EndpointTestCase.java 2015-06-02
07:41:17 UTC (rev 19772)
+++
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/endpoint/EndpointTestCase.java 2015-06-02
13:35:45 UTC (rev 19773)
@@ -64,8 +64,8 @@
.addClass(org.jboss.test.ws.jaxws.endpoint.EndpointInterface.class)
.addClass(org.jboss.test.ws.jaxws.endpoint.EndpointServlet.class)
.addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir() +
"/jaxws/endpoint/WEB-INF/wsdl/TestService.wsdl"),
"wsdl/TestService.wsdl")
+ .addAsManifestResource(new File(JBossWSTestHelper.getTestResourcesDir() +
"/jaxws/endpoint/WEB-INF/permissions.xml"), "permissions.xml")
.setWebXML(new File(JBossWSTestHelper.getTestResourcesDir() +
"/jaxws/endpoint/WEB-INF/web.xml"));
- JBossWSTestHelper.writeToFile(archive);
return archive;
}
Modified:
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2307/JBWS2307MTOMTestCase.java
===================================================================
---
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2307/JBWS2307MTOMTestCase.java 2015-06-02
07:41:17 UTC (rev 19772)
+++
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2307/JBWS2307MTOMTestCase.java 2015-06-02
13:35:45 UTC (rev 19773)
@@ -86,6 +86,7 @@
.addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir() +
"/jaxws/jbws2307/WEB-INF-client/jboss-web.xml"), "jboss-web.xml")
.addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir() +
"/jaxws/jbws2307/WEB-INF-client/web.xml"), "web.xml")
.addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir() +
"/jaxws/jbws2307/WEB-INF-client/wsdl/HelloService.wsdl"),
"wsdl/HelloService.wsdl")
+ .addAsManifestResource(new File(JBossWSTestHelper.getTestResourcesDir() +
"/jaxws/jbws2307/WEB-INF-client/permissions.xml"), "permissions.xml")
.setWebXML(new File(JBossWSTestHelper.getTestResourcesDir() +
"/jaxws/jbws2307/WEB-INF-client/web.xml"));
return archive;
}
@@ -101,6 +102,7 @@
.addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir() +
"/jaxws/jbws2307/WEB-INF-client/jboss-web.xml"), "jboss-web.xml")
.addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir() +
"/jaxws/jbws2307/WEB-INF-client/web3.xml"), "web.xml")
.addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir() +
"/jaxws/jbws2307/WEB-INF-client/wsdl/HelloService.wsdl"),
"wsdl/HelloService.wsdl")
+ .addAsManifestResource(new File(JBossWSTestHelper.getTestResourcesDir() +
"/jaxws/jbws2307/WEB-INF-client/permissions.xml"), "permissions.xml")
.setWebXML(new File(JBossWSTestHelper.getTestResourcesDir() +
"/jaxws/jbws2307/WEB-INF-client/web3.xml"));
return archive;
}
@@ -116,6 +118,7 @@
.addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir() +
"/jaxws/jbws2307/WEB-INF-client/jboss-web.xml"), "jboss-web.xml")
.addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir() +
"/jaxws/jbws2307/WEB-INF-client/web2.xml"), "web.xml")
.addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir() +
"/jaxws/jbws2307/WEB-INF-client/wsdl/HelloService.wsdl"),
"wsdl/HelloService.wsdl")
+ .addAsManifestResource(new File(JBossWSTestHelper.getTestResourcesDir() +
"/jaxws/jbws2307/WEB-INF-client/permissions.xml"), "permissions.xml")
.setWebXML(new File(JBossWSTestHelper.getTestResourcesDir() +
"/jaxws/jbws2307/WEB-INF-client/web2.xml"));
return archive;
}
Modified:
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/resources/jaxws/clientConfig/META-INF/permissions.xml
===================================================================
---
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/resources/jaxws/clientConfig/META-INF/permissions.xml 2015-06-02
07:41:17 UTC (rev 19772)
+++
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/resources/jaxws/clientConfig/META-INF/permissions.xml 2015-06-02
13:35:45 UTC (rev 19773)
@@ -5,7 +5,41 @@
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>
+ <!--Permission("org.jboss.as.server.security.ServerPermission"
"getCurrentServiceContainer") is required-->
+
+ <!--permission>
+ <class-name>java.util.PropertyPermission</class-name>
+ <name>jboss.bind.address</name>
+ <actions>read</actions>
+ </permission>
+ <permission>
<class-name>java.lang.RuntimePermission</class-name>
- <name>org.jboss.as.server.LOOKUP_CURRENT_SERVICE_CONTAINER</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>
Modified:
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/resources/jaxws/endpoint/META-INF/permissions.xml
===================================================================
---
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/resources/jaxws/endpoint/META-INF/permissions.xml 2015-06-02
07:41:17 UTC (rev 19772)
+++
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/resources/jaxws/endpoint/META-INF/permissions.xml 2015-06-02
13:35:45 UTC (rev 19773)
@@ -35,4 +35,9 @@
<name>org.apache.cxf.permission</name>
<actions>resolveUri</actions>
</permission>
+ <permission>
+ <class-name>java.io.FilePermission</class-name>
+ <name><<ALL FILES>></name>
+ <actions>read</actions>
+ </permission>
</permissions>
Added:
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/resources/jaxws/endpoint/WEB-INF/permissions.xml
===================================================================
---
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/resources/jaxws/endpoint/WEB-INF/permissions.xml
(rev 0)
+++
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/resources/jaxws/endpoint/WEB-INF/permissions.xml 2015-06-02
13:35:45 UTC (rev 19773)
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<permissions
xmlns="http://xmlns.jcp.org/xml/ns/javaee"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
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.util.PropertyPermission</class-name>
+ <name>jboss.bind.address</name>
+ <actions>read</actions>
+ </permission>
+ <permission>
+ <class-name>javax.xml.ws.WebServicePermission</class-name>
+ <name>publishEndpoint</name>
+ </permission>
+ <permission>
+ <class-name>java.lang.RuntimePermission</class-name>
+ <name>org.jboss.ws.START_UNDERTOW_SERVER_ENGINE</name>
+ </permission>
+ <permission>
+ <class-name>java.lang.RuntimePermission</class-name>
+ <name>getClassLoader</name>
+ </permission>
+ <permission>
+ <class-name>java.util.PropertyPermission</class-name>
+ <name>user.dir</name>
+ <actions>read</actions>
+ </permission>
+ <permission>
+ <class-name>java.lang.RuntimePermission</class-name>
+ <name>createClassLoader</name>
+ </permission>
+ <permission>
+ <class-name>java.lang.RuntimePermission</class-name>
+ <name>setContextClassLoader</name>
+ </permission>
+ <permission>
+ <class-name>java.lang.RuntimePermission</class-name>
+ <name>org.apache.cxf.permission</name>
+ <actions>resolveUri</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>
Property changes on:
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/resources/jaxws/endpoint/WEB-INF/permissions.xml
___________________________________________________________________
Added: svn:mime-type
+ text/xml
Added: svn:keywords
+ Rev Date
Added: svn:eol-style
+ native
Modified:
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/resources/jaxws/jbws1581/META-INF/permissions.xml
===================================================================
---
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/resources/jaxws/jbws1581/META-INF/permissions.xml 2015-06-02
07:41:17 UTC (rev 19772)
+++
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/resources/jaxws/jbws1581/META-INF/permissions.xml 2015-06-02
13:35:45 UTC (rev 19773)
@@ -6,6 +6,20 @@
version="7">
<permission>
<class-name>java.lang.RuntimePermission</class-name>
+ <name>accessDeclaredMembers</name>
+ </permission>
+ <permission>
+ <class-name>java.net.SocketPermission</class-name>
+ <name>localhost</name>
+ <actions>connect,resolve</actions>
+ </permission>
+ <permission>
+ <class-name>java.util.PropertyPermission</class-name>
+ <name>user.dir</name>
+ <actions>read</actions>
+ </permission>
+ <permission>
+ <class-name>java.lang.RuntimePermission</class-name>
<name>getClassLoader</name>
</permission>
<permission>
@@ -21,4 +35,9 @@
<class-name>java.lang.RuntimePermission</class-name>
<name>getProtectionDomain</name>
</permission>
+ <permission>
+ <class-name>java.io.FilePermission</class-name>
+ <name><<ALL FILES>></name>
+ <actions>read</actions>
+ </permission>
</permissions>
Modified:
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/resources/jaxws/jbws1841/META-INF/permissions.xml
===================================================================
---
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/resources/jaxws/jbws1841/META-INF/permissions.xml 2015-06-02
07:41:17 UTC (rev 19772)
+++
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/resources/jaxws/jbws1841/META-INF/permissions.xml 2015-06-02
13:35:45 UTC (rev 19773)
@@ -6,6 +6,20 @@
version="7">
<permission>
<class-name>java.lang.RuntimePermission</class-name>
+ <name>accessDeclaredMembers</name>
+ </permission>
+ <permission>
+ <class-name>java.net.SocketPermission</class-name>
+ <name>localhost</name>
+ <actions>connect,resolve</actions>
+ </permission>
+ <permission>
+ <class-name>java.util.PropertyPermission</class-name>
+ <name>user.dir</name>
+ <actions>read</actions>
+ </permission>
+ <permission>
+ <class-name>java.lang.RuntimePermission</class-name>
<name>getClassLoader</name>
</permission>
<permission>
@@ -17,4 +31,13 @@
<name>org.apache.cxf.permission</name>
<actions>resolveUri</actions>
</permission>
+ <permission>
+ <class-name>java.lang.RuntimePermission</class-name>
+ <name>getProtectionDomain</name>
+ </permission>
+ <permission>
+ <class-name>java.io.FilePermission</class-name>
+ <name><<ALL FILES>></name>
+ <actions>read</actions>
+ </permission>
</permissions>
Modified:
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/resources/jaxws/jbws2000/META-INF/permissions.xml
===================================================================
---
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/resources/jaxws/jbws2000/META-INF/permissions.xml 2015-06-02
07:41:17 UTC (rev 19772)
+++
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/resources/jaxws/jbws2000/META-INF/permissions.xml 2015-06-02
13:35:45 UTC (rev 19773)
@@ -9,4 +9,9 @@
<name><![CDATA[<<ALL FILES>>]]></name>
<actions>write,delete</actions>
</permission>
+ <permission>
+ <class-name>java.util.PropertyPermission</class-name>
+ <name>java.io.tmpdir</name>
+ <actions>read</actions>
+ </permission>
</permissions>
Modified:
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/resources/jaxws/jbws2257/META-INF/permissions.xml
===================================================================
---
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/resources/jaxws/jbws2257/META-INF/permissions.xml 2015-06-02
07:41:17 UTC (rev 19772)
+++
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/resources/jaxws/jbws2257/META-INF/permissions.xml 2015-06-02
13:35:45 UTC (rev 19773)
@@ -8,4 +8,9 @@
<class-name>java.lang.RuntimePermission</class-name>
<name>getClassLoader</name>
</permission>
+ <permission>
+ <class-name>java.io.FilePermission</class-name>
+ <name><<ALL FILES>></name>
+ <actions>read</actions>
+ </permission>
</permissions>
Modified:
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/resources/jaxws/jbws2268/META-INF/permissions.xml
===================================================================
---
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/resources/jaxws/jbws2268/META-INF/permissions.xml 2015-06-02
07:41:17 UTC (rev 19772)
+++
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/resources/jaxws/jbws2268/META-INF/permissions.xml 2015-06-02
13:35:45 UTC (rev 19773)
@@ -7,6 +7,6 @@
<permission>
<class-name>java.io.FilePermission</class-name>
<name><![CDATA[<<ALL FILES>>]]></name>
- <actions>read</actions>
+ <actions>read,write</actions>
</permission>
</permissions>
Added:
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/resources/jaxws/jbws2307/WEB-INF-client/permissions.xml
===================================================================
---
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/resources/jaxws/jbws2307/WEB-INF-client/permissions.xml
(rev 0)
+++
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/resources/jaxws/jbws2307/WEB-INF-client/permissions.xml 2015-06-02
13:35:45 UTC (rev 19773)
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<permissions
xmlns="http://xmlns.jcp.org/xml/ns/javaee"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
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.lang.RuntimePermission</class-name>
+ <name>accessDeclaredMembers</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.net.SocketPermission</class-name>
+ <name>*</name>
+ <actions>connect,resolve</actions>
+ </permission>
+ <permission>
+ <class-name>java.lang.RuntimePermission</class-name>
+ <name>org.apache.cxf.permission</name>
+ </permission>
+ <permission>
+ <class-name>java.util.PropertyPermission</class-name>
+ <name>user.dir</name>
+ <actions>read</actions>
+ </permission>
+ <permission>
+ <class-name>java.io.FilePermission</class-name>
+ <name><<ALL FILES>></name>
+ <actions>read</actions>
+ </permission>
+</permissions>
Property changes on:
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/resources/jaxws/jbws2307/WEB-INF-client/permissions.xml
___________________________________________________________________
Added: svn:mime-type
+ text/xml
Added: svn:keywords
+ Rev Date
Added: svn:eol-style
+ native