|
|
|
|
|
|
|
|
|
|
|
|
Re: Reference online .setup file with authentication [message #1742052 is a reply to message #1740809] |
Thu, 18 August 2016 16:48 |
Ed Merks Messages: 33264 Registered: July 2009 |
Senior Member |
|
|
Peter,
Didn't I answer this like this last time? Where are you accessing
this? Have you tried this trace flag with the installer or IDE (and of
course redirecting stdout to a file so you can review it)?
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.
On 18.08.2016 18:26, Peter Luthardt wrote:
> Hope I am not out of topic,
>
> I want to access my project.setup from our svn with a url like:
>
> https://157.163.26.183:8443/!/#TNT/view/head/TNT/trunk/tnt/tnt-oomphsetup/TNTSecureNexus.setup
>
>
> But nothing happens. I do not see anything in the log, and no popup
> appears!
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07043 seconds