"Could not create default artifact repositories!" error when an existing bundle has a null symbolic name#22
"Could not create default artifact repositories!" error when an existing bundle has a null symbolic name#22RefuX wants to merge 1 commit into
Conversation
|
Do you als agree? |
|
Symbolic name is a required header and therefore these are not valid bundles see https://docs.osgi.org/specification/osgi.core/8.0.0/framework.module.html#d0e2086
So it seems okay to filter these out but one would really wonder how it becomes that way and maybe better throw a more suitable exception. Beside that the version is allowed to be omitted and then defaults to https://docs.osgi.org/specification/osgi.core/8.0.0/framework.module.html#d0e2103
Therefore I think it should not be filtered as invalid but assumed to be the default if missing. |



I have some snapshot bundles installed which don't have a symbolic names, and this was causing FeatureRuntimeImpl to blowup with a
FeatureRuntimeException("Could not create default artifact repositories!").Adding this check fixed it.