[jbossws-issues] [JBoss JIRA] Commented: (JBWS-1585) WSDLFilePublisher throws a java.security.AccessControlException: access denied
Heiko Braun (JIRA)
jira-events at lists.jboss.org
Wed May 16 08:35:52 EDT 2007
[ http://jira.jboss.com/jira/browse/JBWS-1585?page=comments#action_12362346 ]
Heiko Braun commented on JBWS-1585:
-----------------------------------
I would like to include your suggested patch, but unfortunately i cannot reproduce the bug. Could you provide further details on this? I.e. the policy files in places?
> 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: jaxws
> Environment: jbossws-1.0.4.GA
> Reporter: Roland Räz
> Assigned To: Heiko Braun
> Fix For: jbossws-2.0.0
>
>
> 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
More information about the jbossws-issues
mailing list