Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » P2 » http authentication for p2.mirror task?(http authentication for p2.mirror task?)
http authentication for p2.mirror task? [message #843192] Thu, 12 April 2012 21:07 Go to next message
justin georgeson is currently offline justin georgesonFriend
Messages: 5
Registered: April 2012
Junior Member
I've searched this forum for 'mirror auth' and 'http auth' so apologies if this has already been covered. I'm trying to provide a utility script using a p2.mirror Ant task to allow developers to locally mirror a set of p2 repos that use http and require authentication. It's not a proxy server issue, the http server is internal and requires authentication.

<?xml version="1.0" encoding="UTF-8"?>
<project name="mirror.p2">
  <target name="mirror.p2">
    <p2.mirror>
      <repository location="/p2/local" name="Composite" />
      <source>
        <repository location="http :// server/P2/repo1" />
        <repository location="http :// server/P2/repo2" />
        <repository location="http :// server/P2/repo3" />
      </source>
    </p2.mirror>
  </target>
</project>


Note I had to break up the URLs above due to not having posted 25 times yet, it's correct in my file.

If I run org.eclipse.ant.core.antRunner on this build file I get a ProvisionException for authentication failure. If I try to use username@server then the ProvisionException is for 'Unknown host'. If I try to use username:password@server then the ProvisionException is for 'Unable to read repository.'

How can I supply my credentials to get this to work?
Re: http authentication for p2.mirror task? [message #847053 is a reply to message #843192] Tue, 17 April 2012 00:56 Go to previous messageGo to next message
Pascal Rapicault is currently offline Pascal RapicaultFriend
Messages: 333
Registered: July 2009
Location: Ottawa
Senior Member
p2 does not have any support for this out-of-the-box. To get that to work you would have to implement and register an instance of the org.eclipse.equinox.p2.core.UIServices service. This implementation would get the username and pwd from a place you would pick, including the p2.mirror task entry if needed.

HTH

=-=-=
Pascal
Consulting, training, bug fixing - pascal at rapicault dot net
Re: http authentication for p2.mirror task? [message #847786 is a reply to message #847053] Tue, 17 April 2012 16:53 Go to previous messageGo to next message
justin georgeson is currently offline justin georgesonFriend
Messages: 5
Registered: April 2012
Junior Member
Well, at least I know to stop trying now. Are there any plans to add this seemingly basic functionality?
Re: http authentication for p2.mirror task? [message #849282 is a reply to message #847786] Thu, 19 April 2012 02:44 Go to previous messageGo to next message
Pascal Rapicault is currently offline Pascal RapicaultFriend
Messages: 333
Registered: July 2009
Location: Ottawa
Senior Member
Nothing scheduled. I would recommend opening a bug report as it is the first time this comes up in this context.
Re: http authentication for p2.mirror task? [message #849887 is a reply to message #849282] Thu, 19 April 2012 14:39 Go to previous message
justin georgeson is currently offline justin georgesonFriend
Messages: 5
Registered: April 2012
Junior Member
Done.

bugs.eclipse.org/bugs/show_bug.cgi?id=377194
Previous Topic:'Build Site' encountered a problem: Unable to find feature
Next Topic:having trouble configuring platform.xml with multiple sites
Goto Forum:
  


Current Time: Tue Mar 19 05:13:24 GMT 2024

Powered by FUDForum. Page generated in 0.02089 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top