Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Eclipse Communications Framework (ECF) » access p2 via ftp repository
access p2 via ftp repository [message #482647] Thu, 27 August 2009 12:48 Go to next message
Eclipse UserFriend
Originally posted by: luzi.anderegg.ergon.ch

Hi,
I'm not sure whether this is the correct newsgroup for this question. As
I think p2 uses ECF undercover for this functionality, I hope that this
is the correct place.

I'm building a standard p2-enabled rcp application with the p2 ui, and
I would like to add a p2 repository accessible by ftp. Ideally, the user
should be prompted to enter username and password. Alternatively, it
would be also ok to have a dialog in a menu to enter username and
password. Is this scenario currently supported? If yes, how should the
URI look like in the available site dialog?

Thanks.
Luzi
Re: access p2 via ftp repository [message #482956 is a reply to message #482647] Fri, 28 August 2009 16:46 Go to previous messageGo to next message
Laurent Marchal is currently offline Laurent MarchalFriend
Messages: 91
Registered: July 2009
Member
The good newsgroup for questions about p2 is eclipse.technology.equinox,
you should post there.

I am not 100% sure of this answer, but p2 handles URLs and should work
with ftp servers. I don't know if p2 handle asking the authentication.

Laurent Marchal.

Luzi Anderegg a écrit :
> Hi,
> I'm not sure whether this is the correct newsgroup for this question. As
> I think p2 uses ECF undercover for this functionality, I hope that this
> is the correct place.
>
> I'm building a standard p2-enabled rcp application with the p2 ui, and
> I would like to add a p2 repository accessible by ftp. Ideally, the user
> should be prompted to enter username and password. Alternatively, it
> would be also ok to have a dialog in a menu to enter username and
> password. Is this scenario currently supported? If yes, how should the
> URI look like in the available site dialog?
>
> Thanks.
> Luzi
Re: access p2 via ftp repository [message #482982 is a reply to message #482956] Fri, 28 August 2009 20:28 Go to previous messageGo to next message
Scott Lewis is currently offline Scott LewisFriend
Messages: 1038
Registered: July 2009
Senior Member
Hi Laurent, and Luzi,

Actually all p2 questions around transport come to ECF eventually
anyway, so this is an appropriate place for this question. P2 works as
well (I monitor the p2-dev mailing list quite closely), but this is more
direct.

WRT to ftp support. In Eclipse 3.5, ECF filetransfer uses the JRE's
underlying support for ftp...and since p2 uses ECF filetransfer, right
now you can use URLs of the form:

ftp://<host>/path/file

for repository URLs/URIs. Now, because the JRE's ftp implementation
does not have great/any support for authentication (i.e. it assumes
anonymous access), this ftp implementation will not work for your use case.

Up to now, we/ECF have not had a request specifically to add support for
another FTP provider (e.g. one based upon the apache networking ftp
client for example...which does indeed have support for authentication,
and is also available in the Eclipse Orbit project as a bundle).

But it would be a relatively easy thing to create technically (given the
existing ECF providers and that the apache ftp implementation is readily
available).

For reference, ECF does have a general authentication API that is used
by p2 to display a user interface for username/password at connect time.
So nothing would need be done to create a user interface for entry of
the authentication information (i.e. you can/could reuse what is already
there in p2 in Eclipse).

So the answer is for full ftp support a new ECF filetransfer provider
would have to be created (e.g. based upon apache ftp client). BUT, the
good news about this is that it is quite easy to do, and I and/or other
ECF community members would be able and most willing to provide some
support for doing it...especially if once it was created it was
contributed back to the ECF project.

If a contract relationship is desired to provide this then that could
also easily be arranged.

Thanks,

Scott

Laurent Marchal wrote:
> The good newsgroup for questions about p2 is eclipse.technology.equinox,
> you should post there.
>
> I am not 100% sure of this answer, but p2 handles URLs and should work
> with ftp servers. I don't know if p2 handle asking the authentication.
>
> Laurent Marchal.
>
> Luzi Anderegg a écrit :
>> Hi,
>> I'm not sure whether this is the correct newsgroup for this question.
>> As I think p2 uses ECF undercover for this functionality, I hope that
>> this is the correct place.
>>
>> I'm building a standard p2-enabled rcp application with the p2 ui, and
>> I would like to add a p2 repository accessible by ftp. Ideally, the
>> user should be prompted to enter username and password. Alternatively,
>> it would be also ok to have a dialog in a menu to enter username and
>> password. Is this scenario currently supported? If yes, how should the
>> URI look like in the available site dialog?
>>
>> Thanks.
>> Luzi
Re: access p2 via ftp repository [message #483067 is a reply to message #482982] Sun, 30 August 2009 16:44 Go to previous messageGo to next message
Remy Suen is currently offline Remy SuenFriend
Messages: 462
Registered: July 2009
Senior Member
On Fri, 28 Aug 2009 13:28:02 -0700, Scott Lewis wrote:
> So the answer is for full ftp support a new ECF filetransfer provider
> would have to be created (e.g. based upon apache ftp client).

I have a half-baked implementation going at bug 288052. Note that the
attachment is source code and you will have to export it yourself in
addition to getting the org.apache.commons.net and org.apache.oro bundles
from Orbit. I've also only tested it with my own server with no proxy
settings.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=288052

Regards,
Remy
Re: access p2 via ftp repository [message #483319 is a reply to message #483067] Tue, 01 September 2009 05:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: luzi.anderegg.ergon.ch

Scott, thanks very much for your elaborative explanations. They cleared
up a lot. Remy, thank you for your "basic" implementation. I will give
it a try, and report feedback.

Luzi

Remy Suen wrote:
> On Fri, 28 Aug 2009 13:28:02 -0700, Scott Lewis wrote:
>> So the answer is for full ftp support a new ECF filetransfer provider
>> would have to be created (e.g. based upon apache ftp client).
>
> I have a half-baked implementation going at bug 288052. Note that the
> attachment is source code and you will have to export it yourself in
> addition to getting the org.apache.commons.net and org.apache.oro bundles
> from Orbit. I've also only tested it with my own server with no proxy
> settings.
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=288052
>
> Regards,
> Remy
Re: access p2 via ftp repository [message #486116 is a reply to message #483067] Wed, 16 September 2009 11:55 Go to previous message
Roland Brand is currently offline Roland BrandFriend
Messages: 42
Registered: July 2009
Member
Hi Remy

Thank you for this half-baked implementation ;-) After some relatively
short time of bug fixing, I got it running. I added my fix to bug 288052.


Roland
Re: access p2 via ftp repository [message #624957 is a reply to message #482647] Fri, 28 August 2009 16:46 Go to previous message
Laurent Marchal is currently offline Laurent MarchalFriend
Messages: 91
Registered: July 2009
Member
The good newsgroup for questions about p2 is eclipse.technology.equinox,
you should post there.

I am not 100% sure of this answer, but p2 handles URLs and should work
with ftp servers. I don't know if p2 handle asking the authentication.

Laurent Marchal.

Luzi Anderegg a écrit :
> Hi,
> I'm not sure whether this is the correct newsgroup for this question. As
> I think p2 uses ECF undercover for this functionality, I hope that this
> is the correct place.
>
> I'm building a standard p2-enabled rcp application with the p2 ui, and
> I would like to add a p2 repository accessible by ftp. Ideally, the user
> should be prompted to enter username and password. Alternatively, it
> would be also ok to have a dialog in a menu to enter username and
> password. Is this scenario currently supported? If yes, how should the
> URI look like in the available site dialog?
>
> Thanks.
> Luzi
Re: access p2 via ftp repository [message #624958 is a reply to message #482956] Fri, 28 August 2009 20:28 Go to previous message
Scott Lewis is currently offline Scott LewisFriend
Messages: 1038
Registered: July 2009
Senior Member
Hi Laurent, and Luzi,

Actually all p2 questions around transport come to ECF eventually
anyway, so this is an appropriate place for this question. P2 works as
well (I monitor the p2-dev mailing list quite closely), but this is more
direct.

WRT to ftp support. In Eclipse 3.5, ECF filetransfer uses the JRE's
underlying support for ftp...and since p2 uses ECF filetransfer, right
now you can use URLs of the form:

ftp://<host>/path/file

for repository URLs/URIs. Now, because the JRE's ftp implementation
does not have great/any support for authentication (i.e. it assumes
anonymous access), this ftp implementation will not work for your use case.

Up to now, we/ECF have not had a request specifically to add support for
another FTP provider (e.g. one based upon the apache networking ftp
client for example...which does indeed have support for authentication,
and is also available in the Eclipse Orbit project as a bundle).

But it would be a relatively easy thing to create technically (given the
existing ECF providers and that the apache ftp implementation is readily
available).

For reference, ECF does have a general authentication API that is used
by p2 to display a user interface for username/password at connect time.
So nothing would need be done to create a user interface for entry of
the authentication information (i.e. you can/could reuse what is already
there in p2 in Eclipse).

So the answer is for full ftp support a new ECF filetransfer provider
would have to be created (e.g. based upon apache ftp client). BUT, the
good news about this is that it is quite easy to do, and I and/or other
ECF community members would be able and most willing to provide some
support for doing it...especially if once it was created it was
contributed back to the ECF project.

If a contract relationship is desired to provide this then that could
also easily be arranged.

Thanks,

Scott

Laurent Marchal wrote:
> The good newsgroup for questions about p2 is eclipse.technology.equinox,
> you should post there.
>
> I am not 100% sure of this answer, but p2 handles URLs and should work
> with ftp servers. I don't know if p2 handle asking the authentication.
>
> Laurent Marchal.
>
> Luzi Anderegg a écrit :
>> Hi,
>> I'm not sure whether this is the correct newsgroup for this question.
>> As I think p2 uses ECF undercover for this functionality, I hope that
>> this is the correct place.
>>
>> I'm building a standard p2-enabled rcp application with the p2 ui, and
>> I would like to add a p2 repository accessible by ftp. Ideally, the
>> user should be prompted to enter username and password. Alternatively,
>> it would be also ok to have a dialog in a menu to enter username and
>> password. Is this scenario currently supported? If yes, how should the
>> URI look like in the available site dialog?
>>
>> Thanks.
>> Luzi
Re: access p2 via ftp repository [message #624959 is a reply to message #482982] Sun, 30 August 2009 16:44 Go to previous message
Remy Suen is currently offline Remy SuenFriend
Messages: 462
Registered: July 2009
Senior Member
On Fri, 28 Aug 2009 13:28:02 -0700, Scott Lewis wrote:
> So the answer is for full ftp support a new ECF filetransfer provider
> would have to be created (e.g. based upon apache ftp client).

I have a half-baked implementation going at bug 288052. Note that the
attachment is source code and you will have to export it yourself in
addition to getting the org.apache.commons.net and org.apache.oro bundles
from Orbit. I've also only tested it with my own server with no proxy
settings.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=288052

Regards,
Remy
Re: access p2 via ftp repository [message #624960 is a reply to message #483067] Tue, 01 September 2009 05:09 Go to previous message
Eclipse UserFriend
Originally posted by: luzi.anderegg.ergon.ch

Scott, thanks very much for your elaborative explanations. They cleared
up a lot. Remy, thank you for your "basic" implementation. I will give
it a try, and report feedback.

Luzi

Remy Suen wrote:
> On Fri, 28 Aug 2009 13:28:02 -0700, Scott Lewis wrote:
>> So the answer is for full ftp support a new ECF filetransfer provider
>> would have to be created (e.g. based upon apache ftp client).
>
> I have a half-baked implementation going at bug 288052. Note that the
> attachment is source code and you will have to export it yourself in
> addition to getting the org.apache.commons.net and org.apache.oro bundles
> from Orbit. I've also only tested it with my own server with no proxy
> settings.
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=288052
>
> Regards,
> Remy
Re: access p2 via ftp repository [message #624973 is a reply to message #483067] Wed, 16 September 2009 11:55 Go to previous message
Roland Brand is currently offline Roland BrandFriend
Messages: 42
Registered: July 2009
Member
Hi Remy

Thank you for this half-baked implementation ;-) After some relatively
short time of bug fixing, I got it running. I added my fix to bug 288052.


Roland
Previous Topic:Book about ECF
Next Topic:Eclipse and Corba
Goto Forum:
  


Current Time: Wed Sep 25 23:59:38 GMT 2024

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

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

Back to the top