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

no_proxy fails with urls containing a dash #93

Closed
wum5r opened this issue Jun 7, 2024 · 4 comments · Fixed by #97
Closed

no_proxy fails with urls containing a dash #93

wum5r opened this issue Jun 7, 2024 · 4 comments · Fixed by #97
Labels
bug Something isn't working

Comments

@wum5r
Copy link

wum5r commented Jun 7, 2024

Describe the bug

I have setup the jenkins-jfrog-plugin to download the cli tool from a local Artifactory. We have a Artifactory server in a company network with the url 01-artifactory.test.com. We have setup a proxy with the Artifactory url in the no proxy list. But the download from Artifactory fails with a 403 from the proxy. It looks like the hostname for our Artifactory is cut at the dash so it is searched for 01 in the no_proxy list instead of 01-artifactory.test.com

Current behavior

org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: b2c56d0d-6eec-4164-9ad2-473f4b9fc29e
java.io.IOException: JFrog service failed. Received 403

Reproduction steps

Add an artifactory server with an URL containig a '-' in a setup with a proxy and add the server url to the no_proxy list

Expected behavior

Download from artifactory is done in the internal network without using the proxy

JFrog plugin version

1.5.0

JFrog CLI version

2.57.0

Operating system type and version

Windows 10 22H2

JFrog Artifactory version

7.68.1.4

JFrog Xray version

No response

@wum5r wum5r added the bug Something isn't working label Jun 7, 2024
@harryg-bosch
Copy link

harryg-bosch commented Jul 16, 2024

Probably exactly same here. For me also install from Artifactory fails because it goes through the proxy although I used proper no proxy settings (which work elsewhere in Jenkins!).
My internal Artifactory also has a dash in its name, so this could really be the reason.
Workaround is difficult as public jFrog repo is not allowed through our proxy. So I'm now using an ugly wget workaround...

@yahavi or anyone from the jFrog team, can you please check this? It is quite annoying.

@yahavi
Copy link
Member

yahavi commented Jul 22, 2024

@wum5r @harryg-bosch

The Jenkins JFrog plugin version 1.5.1 has been released. This version includes the fix for the issue.

Please feel free to upgrade, and we would appreciate your feedback on this.

@harryg-bosch
Copy link

Great, thanks a lot, that was fast!

@wum5r
Copy link
Author

wum5r commented Aug 19, 2024

I have installed the new version of the plugin and now everything works as expected.
Thanks a lot for the quick support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants