[ 
http://issues.apache.org/jira/browse/FELIX-187?page=comments#action_12459990 ] 
            
Richard S. Hall commented on FELIX-187:
---------------------------------------

Yeah, that sounds like an issue.

The way it is right now, RepositoryAdmin.listRepositories() returns an array of 
Repository instances not just an array of URLs or Strings, thus this requires 
that we actually create the repositories to list them. The Repository 
implementation tries to connect to the URL when it is created.

One way to remedy this situation would be to modify the Repository 
implementation to not try to connect to the URL until some of its methods are 
actually used. In this case, if there is a failure to connect, then the methods 
would have to return reasonable defaults for all subsequent invocations.

There is also another approach available to you now. You can just define 
obr.repository.url in the config.properties file to be the space-delimited list 
of URLs that you want to use.

> list-url behind a proxy
> -----------------------
>
>                 Key: FELIX-187
>                 URL: http://issues.apache.org/jira/browse/FELIX-187
>             Project: Felix
>          Issue Type: Bug
>          Components: Bundle Repository (OBR)
>    Affects Versions: 0.8.0
>            Reporter: Florent BENOIT
>            Priority: Minor
>
>   Hi,
> The problem is the following:
> I downloaded Felix and then, I added a local repository with "obr add-url 
> file:///...." command.
> Then, I wanted to list my bundles and I enter  "obr list xxx"
> Here there was a hang/timeout. This is because there is a default OBR URL 
> (http://oscar-osgi.sf.net/obr2/repository.xml) and I can't connect to it.
> As I'm behind a proxy, I wanted to check the list of URL that are present (to 
> see if I have external URL (not file:///))
> I used "obr list-url" command.
> The problem is that this command was blocking due to my proxy.
> So, in order to know the list of URLs, I need to have a proper proxy setting 
> which is for me a problem.
> How to remove an URL ((http://oscar-osgi.sf.net/obr2/repository.xml), if I 
> cannot list them (when I'm behind a proxy and that I didn't configure my java 
> options).
> To make short: Why do I need a configured proxy for listing the URL ? A 
> workaround is to configure the proxy settings but this is not what I wanted 
> to do.
> Regards,
> Florent

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to