[ http://jira.jboss.com/jira/browse/JBCACHE-103?page=history ]
Bela Ban updated JBCACHE-103: ----------------------------- Fix Version: 1.2.1 > ConfiguratorFactory#getConfigStream should not throw a AccessControlException > ----------------------------------------------------------------------------- > > Key: JBCACHE-103 > URL: http://jira.jboss.com/jira/browse/JBCACHE-103 > Project: JBoss Cache > Type: Bug > Versions: 2.x > Environment: JBoss 4.0.1_sp1 / JCache 2.2.7 > Reporter: Roland R?z > Assignee: Bela Ban > Fix For: 1.2.1 > > Original Estimate: 30 minutes > Remaining: 30 minutes > > Hi, > the following will cause an AccessControlException when working with a > Java security file policy that sets limited FilePermissions: > class org.jgroups.conf.ConfiguratorFactory > method > InputStream getConfigStream(String properties) throws IOException > ... > // Check to see if the properties string is the name of a file. > if (configStream == null) { > try { > configStream=new FileInputStream(properties); > } > catch(FileNotFoundException fnfe) { > // the properties string is likely not a file > } > } > If the properties are not a file but the real properties a > AccessControlException > will be thrown when checking the FilePermission that looks like this (for > example) > UDP(ip_mcast=true;ip_ttl=32;loopback=false;mcast_addr=228.1.2.3;mcast_port=12020;...) > Possibly you should check if the String properties starts with UDP. > Regards -- 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 - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development