Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » accessing project setups from https which requieres authentication(Can not access my project setup file which is on nexus which requires authentication)
accessing project setups from https which requieres authentication [message #1740635] Tue, 16 August 2016 14:14 Go to next message
Peter Luthardt is currently offline Peter LuthardtFriend
Messages: 43
Registered: February 2014
Member
Hello,

I am an OOMPH beginner and I got stuck.
I have create some project setups which I add to the user project by providing there url.

If I use a url which does not require authentication everything works fine, but now we have switched to a secure nexus and the setups are not accessible any more.
I get this exception in the log when trying to access the file directly:
Caused by: java.io.IOException: Server returned HTTP response code: 401 for URL: https://depvnx01/nexus/service/local/repositories/snapshots/content/...
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1840)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)
	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
	at org.eclipse.ecf.provider.filetransfer.retrieve.UrlConnectionRetrieveFileTransfer.getDecompressedStream(UrlConnectionRetrieveFileTransfer.java:552)
	at org.eclipse.ecf.provider.filetransfer.retrieve.UrlConnectionRetrieveFileTransfer.openStreams(UrlConnectionRetrieveFileTransfer.java:322)
	... 49 more

When I use the redirection url (https://depvnx01/nexus/service/local/artifact/maven/redirect?r=public&g=...&a=..&v=LATEST&e=setup)I get no exception and nothing happens.

The best way would be to access the setup from our svn server, but here I need authentication, too
Could you please give me a hint where to look. Or do I use the wrong approach?
Thanks.
Re: accessing project setups from https which requieres authentication [message #1742048 is a reply to message #1740635] Tue, 16 August 2016 14:35 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 31035
Registered: July 2009
Senior Member
Peter,

There is logic in ECFURIHandlerImpl for authorization:

if (authorizatonHandler != null)
{
if (errorCode == HttpURLConnection.HTTP_UNAUTHORIZED ||
API_GITHUB_HOST.equals(getHost(uri)) && errorCode ==
HttpURLConnection.HTTP_NOT_FOUND)
{
if (authorization == null)
{
authorization = authorizatonHandler.authorize(uri);
if (authorization.isAuthorized())
{
--i;
continue;
}
}

You're not being prompted for a user name and password? That's what I
would expect. I have used this with setups that require
authentication, but I think it depends a bit on what kind of
authentication the server requires.

There's also -Doomph.setup.ecf.trace=true which you could try to find
out more what's going on. It prints to stdout...


On 16.08.2016 16:14, Peter Luthardt wrote:
> Hello,
>
> I am an OOMPH beginner and I got stuck. I have create some project
> setups which I add to the user project by providing there url.
>
> If I use a url which does not require authentication everything works
> fine, but now we have switched to a secure nexus and the setups are
> not accessible any more.
> I get this exception in the log when trying to access the file directly:
> Caused by: java.io.IOException: Server returned HTTP response code:
> 401 for URL:
> https://depvnx01/nexus/service/local/repositories/snapshots/content/...
> at
> sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1840)
> at
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)
> at
> sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
> at
> org.eclipse.ecf.provider.filetransfer.retrieve.UrlConnectionRetrieveFileTransfer.getDecompressedStream(UrlConnectionRetrieveFileTransfer.java:552)
> at
> org.eclipse.ecf.provider.filetransfer.retrieve.UrlConnectionRetrieveFileTransfer.openStreams(UrlConnectionRetrieveFileTransfer.java:322)
> ... 49 more When I use the redirection url
> (https://depvnx01/nexus/service/local/artifact/maven/redirect?r=public&g=...&a=..&v=LATEST&e=setup)I
> get no exception and nothing happens.
>
> The best way would be to access the setup from our svn server, but
> here I need authentication, too
> Could you please give me a hint where to look. Or do I use the wrong
> approach?
> Thanks.
Previous Topic:Access user selected arch value
Next Topic:Zipped product archives for Windows
Goto Forum:
  


Current Time: Mon Apr 06 19:12:05 GMT 2020

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

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

Back to the top