[
https://issues.apache.org/jira/browse/FELIX-481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12566962#action_12566962
]
Alin Dreghiciu commented on FELIX-481:
--------------------------------------
I do not get exactly what you mean but I have no problem with not having an
exception if there is no default repository. But the case when default repo is
taken in count implies that there is no other configured repository so
discoverResources has nothing to do (as there is no repository), so I guess
then it should return an empty array of resources (or throw an exception as I
proposed). Recall that this is not when the bundle is starting but when it is
initialized (repositories are initialized lazy), for example when calling
discoverResources.
> Change OBR default repository url
> ----------------------------------
>
> Key: FELIX-481
> URL: https://issues.apache.org/jira/browse/FELIX-481
> Project: Felix
> Issue Type: Improvement
> Components: Bundle Repository (OBR)
> Affects Versions: 1.0.0
> Reporter: Alin Dreghiciu
> Priority: Minor
>
> By default (if no repository is configured) BundleRepository uses
> http://oscar-osgi.sourceforge.net/obr2/repository.xml as a default
> repository. As Richard mentioned on the mailing list this repository is more
> a "didactic" repository. Having this repo is somehow then useless and adds
> confusion to the unexperimented (e.g. one has a wrong spelled config
> "obr.repository.url". In that case the default is used => expected bundles
> will not be found)
> I suggest the following alternatives:
> 1. No default => fail to initialize with an misconfiguration exception
> 2. use the osgi alliance repository
> 3. use a (to be created) felix obr repository
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.