Sounds strange, do you have something you can share that reproduces the problem?
regards, Karl On Wed, Feb 2, 2022 at 3:56 PM Chris Rankin <ranki...@gmail.com> wrote: > > Hi, > > I am starting to suspect that the "CondtionInfo" aspect is actually > working correctly, and that the actual problem is with AdminPermission > itself. > > I have added this line to both a bundle whose location matches > "CAGE/*" and one whose location doesn't: > > System.getSecurityManager().checkPermission(new AdminPermission("*", > AdminPermission.CONTEXT)); > > This check correctly does/does not trigger an AccessControlException, > according to who invokes it. > > However, checking AdminPermission(bundle, AdminPermission.CONTEXT) > doesn't trigger an exception in either case. > > Have I completely misunderstood how the AdminPermission's "name" > property works? I can't see how everyone has not noticed a bug in > something this crucial?! > > Cheers, > Chris > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@felix.apache.org > For additional commands, e-mail: users-h...@felix.apache.org > -- Karl Pauls karlpa...@gmail.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@felix.apache.org For additional commands, e-mail: users-h...@felix.apache.org