It's all about the answers!

Ask a question

How do I allow access to artifacts without authentication (for a p2 repository)


James Hewitt (4258) | asked Jul 16 '12, 9:12 a.m.
 I'd like to use my RAM asset as a P2 repository, but can't find a way to allow access to assets without any authentication (which is required for most p2 clients). I have managed to allow access to browse the asset, and see the listing without auth, but when I try to pick a file, it asks me to log in.

Is there a way to do this?

I've tried with oslc: /ram.ws/oslc/assets/D473138E-89B8-DC22-AD05-E647470E0ECE/3.0.0.20120716-1211/artifactContents/repository/content.xml
And I've tried with RAM: /ram.ws/artifact/D473138E-89B8-DC22-AD05-E647470E0ECE/3.0.0.20120716-1211/repository/content.xml
And RAM form: /ram/artifact/D473138E-89B8-DC22-AD05-E647470E0ECE/3.0.0.20120716-1211/repository/content.xml

2 answers



permanent link
Rich Kulp (3.6k38) | answered Jul 16 '12, 9:36 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
OSLC doesn't allow anonymous download I believe. Either that or your RAM is earlier than 7.5.1.1. Before 7.5.1.1 anonymous users weren't allowed to download.

Also, I use Eclipse P2 all of the time and it allows me to access a P2 repository that requires a login id. It works fine with basic auth.

By the way, for P2, don't use oslc. RAM already supports it through the older standard for artifacts:

ram.ws/artifact/%7BF5E1685B-2BDA-2555-8A40-758F6C644F31%7D/7.5.2/repository

Notice that the standard form is also ram.ws. For things like P2 you don't want to use the web access.

permanent link
Gili Mendel (1.8k56) | answered Jul 16 '12, 1:55 p.m.
JAZZ DEVELOPER
edited Jul 16 '12, 6:43 p.m. by Rich Kulp (3.6k38)
Note that authentication is (and should be) part of life.   Eclipse update clients handle RAM p2 urls that are protected with no problems.... note though that if you use https, you may need to (if your server certificate is not authorized) register your server's certificate with Eclipse' key store for the update to work.

Basic Auth should work on the non OSLC artifacts URLs, and OSLC for 7.5.1.1

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.