[hibernate-dev] PersistenceUtilHelper causing AccessControlException under SecurityManager

Emmanuel Bernard emmanuel at hibernate.org
Mon Jan 10 08:27:07 EST 2011


Well, I am not sure Hibernate properly works under a SecurityManager as we have not done the work we did on HV but I guess we could slowly try and protect such calls. Open a JIRA and even better, fork and pull ;)

On 9 janv. 2011, at 13:16, Gunnar Morling wrote:

> Hello,
> 
> while running some tests of HV with a Java security manager enabled I
> stumbled upon a java.security.AccessControlException caused
> by org.hibernate.ejb.util.PersistenceUtilHelper#setAccessibility() due to a
> missing ReflectPermission.
> 
> I think the call to setAccessible() should be executed using a
> PrivilegedAction similar to the implementation in
> org.hibernate.validator.util.ReflectionHelper#setAccessibility().
> 
> Should I add a JIRA ticket for this?
> 
> Gunnar
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev





More information about the hibernate-dev mailing list