Skip to content

An error occurred while analyzing x.jar (Sonatype OSS Index Analyzer): Failed to request component-reports #7585

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

Open
elect86 opened this issue Apr 8, 2025 · 3 comments
Labels

Comments

@elect86
Copy link

elect86 commented Apr 8, 2025

Describe the bug
Multiple module project, running ./gradlew dependencyCheckAggregate --info --continue --stacktrace

In the log I see tons of errors, such as:

An error occurred while analyzing '/builds/bifrost/bifrost-jvm-apps/gradleUserHome/caches/modules-2/files-2.1/io.netty/netty-codec/4.1.117.Final/2831d3431ed93d9c0b64b1c0cce2ced4737539aa/netty-codec-4.1.117.Final.jar' (Sonatype OSS Index Analyzer): Failed to request component-reports

And then also tons of AnalysisException: Failed to request component-reports, at the bottom:

AnalysisException: Failed to request component-reports
caused by IllegalArgumentException: URLDecoder: Incomplete trailing escape (%) pattern
at org.owasp.dependencycheck.Engine.analyzeDependencies(Engine.java:690)
at org.owasp.dependencycheck.gradle.tasks.AbstractAnalyze.analyze(AbstractAnalyze.groovy:103)
... 150 more

Version of dependency-check used
12.1.1

Log file
here

To Reproduce
It only happens on our internal CI

Expected behavior
No error

Additional context
It started from itself without any rational explanation

@elect86 elect86 added the bug label Apr 8, 2025
@jeremylong
Copy link
Collaborator

does your internal CI have access to the Internet? The OSS Index Analyzer makes outbound calls.

@elect86
Copy link
Author

elect86 commented Apr 8, 2025

yes, although it should use the proxy

Could it be that? How can I configure that for the OSS Index Analyzer?

@jeremylong
Copy link
Collaborator

Take a look at the documentation: https://dependency-check.github.io/DependencyCheck/dependency-check-gradle/configuration-aggregate.html

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

No branches or pull requests

2 participants