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

Regression on proxy handling #295

Closed
moley opened this issue Dec 6, 2022 · 2 comments
Closed

Regression on proxy handling #295

moley opened this issue Dec 6, 2022 · 2 comments
Milestone

Comments

@moley
Copy link

moley commented Dec 6, 2022

Hello everyone,

We are facing a problem, when running the task dependencyCheckAggregate behind out proxy:
Caused by: org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'xxxx' with class 'java.lang.String' to class 'java.lang.Integer' at org.owasp.dependencycheck.gradle.extension.ProxyExtension.setProperty(ProxyExtension.groovy) at org.owasp.dependencycheck.gradle.tasks.ConfiguredTask.configureProxy(ConfiguredTask.groovy:196) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

The problem seems to be you have eliminated usage of internal gradle api with 2001e14
but did not take in account the port, which was in the gradle objects before an integer is now with environment variable handling a string. Workaround for me currently is backporting to version 7.3.0, which was working, waiting for this issue to be fixed. Thanks a lot

@herrlock
Copy link
Contributor

herrlock commented Dec 6, 2022

This was fixed, but did not make it into the 7.4.0 (I assume by mistake)
jeremylong/DependencyCheck#5076 (comment)

@jeremylong
Copy link
Collaborator

Yeah - sorry about that. i really need to automate the release process for the gradle plugin so mistakes like this don't happen...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants