[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [p2-dev] Authority component in a p2 repository URI

Hi Ian,

We don't currently support specifying the password in the URL.  From what I've read, from a security perspective it's pretty iffy...so we just didn't go to the effort to support it.

It is possible, however, to specify a password (e.g. for basic authentication) via the IConnectContext (rather than embedded in the URI/URL).

ECF allows the use of any new protocol/URI scheme...so you could add/create your own provider that parsed the URI in any manner desired (and possibly just used/reuse an existing provider).  e.g. ianbull:http://irbull:password@localhost/repository.


On 1/31/2013 11:02 AM, Ian Bull wrote:
I'm trying to access a p2 repository using the following syntax:

And it's failing a parse exception:

java.lang.NumberFormatException: For input string: "password@localhost"

From the stack, it appears that ECF is trying to use 'irbull' as the host and password@localhost as the port. In HttpClientFileSystemBrowse, the URI is converted to a String, and the string is parsed into components (host, port, etc..). Does anybody know if this is supported? If not, is there a URI syntax that we use for specifying usernames and passwords in p2?


R. Ian Bull | EclipseSource Victoria | +1 250 477 7484
http://eclipsesource.com | http://twitter.com/eclipsesource

p2-dev mailing list