How are you accessing the resources from the fragments? - Using the classloader? this.getClass().getClassLoader().getResource - Using Bundle.getResource?
If you are using the class loader directly to lookup the resource then this behavior is unexpected (please open a bug report against Equinox at https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Equinox) If you are calling Bundle.getResource on the fragment bundle then I would expect you to need the RESOURCE permission. Tom From: Costin Leau <[EMAIL PROTECTED]> To: [email protected] Date: 08/12/2008 04:49 PM Subject: [osgi-dev] permissions and attached fragments Hi everyone, I have a question regarding permissions, mainly AdminPermission.RESOURCE. Suppose I have a bundle A with two attached fragments, B and C running under a security manager with the proper BundlePermissions in place and nothing else. I've noticed that unless I add an AdminPermission.RESOURCE from A to B and C, resources inside the fragments are not found by the host bundle. Is this the expected behaviour ? P.S. For testing, I'm using Equinox 3.2.2 Thank you, -- Costin _______________________________________________ OSGi Developer Mail List [email protected] https://mail.osgi.org/mailman/listinfo/osgi-dev
<<inline: graycol.gif>>
<<inline: ecblank.gif>>
_______________________________________________ OSGi Developer Mail List [email protected] https://mail.osgi.org/mailman/listinfo/osgi-dev
