Hi, I have managed to reproduce the issue in this GitHub repository: https://github.com/chrisr3/osgi-security.git
I am hoping this is just a misunderstanding somewhere on my part. Cheers, Chris On Wed, 2 Feb 2022 at 17:40, Karl Pauls <[email protected]> wrote: > > 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 <[email protected]> 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: [email protected] > > For additional commands, e-mail: [email protected] > > > > > -- > Karl Pauls > [email protected] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

