[ http://jira.jboss.com/jira/browse/JBCACHE-103?page=history ]
Bela Ban updated JBCACHE-103: ----------------------------- Fix Version: 1.2.4 (was: 1.2.3) > 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.4 > > 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 ------------------------------------------------------- This SF.net email is sponsored by Demarc: A global provider of Threat Management Solutions. Download our HomeAdmin security software for free today! http://www.demarc.com/info/Sentarus/hamr30 _______________________________________________ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development