Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tycho 4.0.1 Unable to read repository at https://download.eclipse.org/releases/latest behind proxy #2709

Open
mneffgen opened this issue Aug 11, 2023 · 4 comments

Comments

@mneffgen
Copy link

I am behind a corporate proxy and tried to build the itp01 demo with Tycho 4.
While the build succeeded with Tycho 3.0.5 and 2.7.5 with my proxy configuration in the maven settings, it seems that the proxy is ignored by tcho 4.0.1.

@Kummallinen
Copy link
Contributor

I'm having the same issue, however it does work some of the time

@laeubi
Copy link
Member

laeubi commented Sep 18, 2023

There is a (passing!) test for proxy support:

https://github.com/eclipse-tycho/tycho/blob/master/tycho-its/src/test/java/org/eclipse/tycho/test/TYCHO279HttpProxy/ProxySupportTest.java

so if anyone is able to reproduce the problem with that test it would help alot.

@Torbjorn-Svensson
Copy link
Contributor

There is a (passing!) test for proxy support:

https://github.com/eclipse-tycho/tycho/blob/master/tycho-its/src/test/java/org/eclipse/tycho/test/TYCHO279HttpProxy/ProxySupportTest.java

so if anyone is able to reproduce the problem with that test it would help alot.

PR created that updates the testcase to emulate a corporate network with a proxy.
Hopefully, you can use this to identify why tycho fails to use the configured proxy.

@mneffgen
Copy link
Author

mneffgen commented Oct 16, 2023

It turned out, that my proxy configuration is the problem.

It does not work with protocol specific configurations.

Working:

<proxies>
	<proxy>
		<id>Proxy</id>
		<active>true</active>
		<host>192.168.8.50</host>
		<port>3128</port>
	</proxy>
</proxies>

Not working:

<proxies>
	<proxy>
		<id>Proxy HTTP</id>
		<active>true</active>
		<protocol>http</protocol>
		<host>192.168.8.50</host>
		<port>3128</port>
	</proxy>
	<proxy>
		<id>Proxy HTTPS</id>
		<active>true</active>
		<protocol>https</protocol>
		<host>192.168.8.50</host>
		<port>3128</port>
	</proxy>
</proxies>

Bananeweizen added a commit to Bananeweizen/tycho that referenced this issue Dec 24, 2023
If a proxy is specified with the https procotol in the settings.xml,
Tycho fails downloading artifacts from any URL that uses that proxy,
because it wrongly configures a SOCKS transport in such cases.

Fixes eclipse-tycho#1935, eclipse-tycho#2709, eclipse-tycho#2533.
laeubi pushed a commit that referenced this issue Dec 24, 2023
If a proxy is specified with the https procotol in the settings.xml,
Tycho fails downloading artifacts from any URL that uses that proxy,
because it wrongly configures a SOCKS transport in such cases.

Fixes #1935, #2709, #2533.
github-actions bot pushed a commit that referenced this issue Dec 24, 2023
If a proxy is specified with the https procotol in the settings.xml,
Tycho fails downloading artifacts from any URL that uses that proxy,
because it wrongly configures a SOCKS transport in such cases.

Fixes #1935, #2709, #2533.

(cherry picked from commit d64b98f)
laeubi pushed a commit that referenced this issue Dec 25, 2023
If a proxy is specified with the https procotol in the settings.xml,
Tycho fails downloading artifacts from any URL that uses that proxy,
because it wrongly configures a SOCKS transport in such cases.

Fixes #1935, #2709, #2533.

(cherry picked from commit d64b98f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants