Closed GoogleCodeExporter closed 9 years ago
The Bundle-SymbolicName header is only required if we have an R4 bundle (i.e.,
Bundle-ManifestVersion=2). For R3 bundles there is no such requirement (in
fact, all jars are valid bundles in R3).
Initially, i made it so that only R4 bundles are recognized but later changed
my mind as this is the standard behavior (you can install any jar as a bundle
into real OSGi framework like felix too). Only if the are saying that they are
R4 (Bundle-ManifestVersion=2) but don't specify a Bundle-SymbolicName header
they are broken.
As you already noticed, I added the possibility for a filter especially for
this kind of situation (i.e., you can make your one policy using an ldap filter
over the manifest attributes). I hope that is not a problem for you?
Original comment by karlpauls
on 2 Aug 2011 at 10:29
Ah, now I understand. I missed the detail about the change in R4; I thought
that header had always been required to qualify as a bundle.
It's not a problem, because as you suggested, one can mandate that header with
a filter:
(Bundle-SymbolicName=*)
It would be nice to add a note on the Wiki about this, so that if other users
wish to only pick up R4-compliant bundles, they would know how to do it and
avoid being surprised by the more liberal normal behavior.
Thanks for following up and for sharing this project.
Original comment by sehar...@gmail.com
on 3 Aug 2011 at 11:48
Yeah, we need more usage documentation. I'll try to get to it. Thanks for
looking into pojosr - feel free to let us know if you use it for something or
have other problems.
Original comment by karlpauls
on 16 Aug 2011 at 3:07
Original issue reported on code.google.com by
sehar...@gmail.com
on 29 Jul 2011 at 1:01