Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » oomph redirection when processing P2 director tasks
oomph redirection when processing P2 director tasks [message #1803682] Wed, 06 March 2019 17:16 Go to next message
Mario Jauvin is currently offline Mario JauvinFriend
Messages: 94
Registered: October 2015
Member
Good day,

I have a P2 director task that points to a file URI to a mirrored update site. This update sites has references to features on from a url say https://urlx.company.com/features. I have a -Doompth.redirection.urlx=https://urlx.company.com/->file://server/path/ where path contains the requested features. Note the trailing / in both case. I have known this to cause a problem.

When I run the setup, it still tries to contact the urlx.company.com host.

Am I doing something wrong, is this a bug or is this not supported?

Thanks.
Re: oomph redirection when processing P2 director tasks [message #1803685 is a reply to message #1803682] Wed, 06 March 2019 18:31 Go to previous messageGo to next message
Mario Jauvin is currently offline Mario JauvinFriend
Messages: 94
Registered: October 2015
Member
This is the stack trace:
java.net.UnknownHostException: urlx.company.com
	at java.base/java.net.InetAddress$CachedAddresses.get(InetAddress.java:797)
	at java.base/java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:883)
	at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1505)
	at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1364)
	at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1298)
	at org.apache.http.impl.conn.SystemDefaultDnsResolver.resolve(SystemDefaultDnsResolver.java:45)
	at org.apache.http.impl.conn.DefaultClientConnectionOperator.resolveHostname(DefaultClientConnectionOperator.java:263)
	at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:162)
	at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:144)
	at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:134)
	at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:610)
	at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:445)
	at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:835)
	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
	at org.eclipse.ecf.provider.filetransfer.httpclient4.HttpClientRetrieveFileTransfer.performConnect(HttpClientRetrieveFileTransfer.java:1084)
	at org.eclipse.ecf.provider.filetransfer.httpclient4.HttpClientRetrieveFileTransfer.access$0(HttpClientRetrieveFileTransfer.java:1075)
	at org.eclipse.ecf.provider.filetransfer.httpclient4.HttpClientRetrieveFileTransfer$1.performFileTransfer(HttpClientRetrieveFileTransfer.java:1071)
	at org.eclipse.ecf.filetransfer.FileTransferJob.run(FileTransferJob.java:74)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Re: oomph redirection when processing P2 director tasks [message #1803700 is a reply to message #1803685] Thu, 07 March 2019 02:36 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
Redirections are applied only to the direct URIs used in the setup tasks themselves. Any URIs used internally by an update site (e.g., in composites or in p2 touch points) are processed directly by the underlying p2 infrastructure where there is no concept of applying redirections. That's often kind of annoying because it means you need to modify the mirrored copy itself, and the p2 mirror application doesn't help support such rewrites...

Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Can a configuration add setup models from custom locations?
Next Topic:Java Code Formatter is installed but not activated
Goto Forum:
  


Current Time: Thu Apr 18 06:47:29 GMT 2024

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

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

Back to the top