[hibernate-dev] PersistenceUtilHelper causing AccessControlException under SecurityManager
Gunnar Morling
gunnar.morling at googlemail.com
Tue Jan 11 12:14:18 EST 2011
Hi,
ok, I'll provide a patch for this and attach it to a new JIRA issue I'll
create then. But for now I'm focusing on HV 4.2 beta1 :-)
Gunnar
2011/1/10 Emmanuel Bernard <emmanuel at hibernate.org>
> 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