[
http://jira.jboss.com/jira/browse/JBWS-1585?page=all ]
Thomas Diesler updated JBWS-1585:
---------------------------------
Fix Version/s: (was: jbossws-2.0.0)
WSDLFilePublisher throws a java.security.AccessControlException:
access denied
-------------------------------------------------------------------------------
Key: JBWS-1585
URL:
http://jira.jboss.com/jira/browse/JBWS-1585
Project: JBoss Web Services
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: jbossws-jaxws
Environment: jbossws-1.0.4.GA
Reporter: Roland Räz
Assigned To: Heiko Braun
When the security manager is enabled the class org.jboss.ws.server.WSDLFilePublisher
causes an AccessControlException because it uses the file constructor with the given url.
e.g.
java.security.AccessControlException: access denied
(java.io.FilePermission
file:/var/opt/jboss4/jbossiv/current/temp/jboss/temp/jbossws/Sample181Service64187.wsdl
delete)
Using an URI and the correct constructor resolves this issue:
...
if
(wsdlFile.startsWith(config.getServerTempDir().toURL().toExternalForm()))
{
URI uri = new URI(wsdlFile);
File file = new File(uri);
file.delete();
}
...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira