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

feat: ArtifactoryAnalyzer updated to use the HTTPClient5-based Downloader and skip unusable results #7293

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

aikebah
Copy link
Collaborator

@aikebah aikebah commented Jan 8, 2025

Description of Change

Make ArtifactoryAnalyzer use the Downloader class to finalize the migration of HTTP-traffic to use the Apache HTTPClient5 finalizing the work still left after #6949

Make ArtifactoryAnalyzer skip results that do not fit the expectations (matching hashes and a maven-like G/A/V path structure) and attempt to find further matches in the remaining search results instead of throwing an exception on a first unexpected result entry format.

Related issues

Fixes #5868
Fixes #7254

Have test cases been added to cover the new functionality?

yes a testcase was added for the fix of #5868

…eset of DependencyCheck

Also mitigate issue #5868 by skipping (with a warning log) unusable results instead of throwing an exception so that multi-result responses can be handled.
@boring-cyborg boring-cyborg bot added core changes to core tests test cases utils changes to utils labels Jan 8, 2025
@aikebah
Copy link
Collaborator Author

aikebah commented Jan 8, 2025

Marked as a draft PR awaiting results from the community on live-testing a snapshot build against an Artifactory Pro instance.

…that turns out to have runtime platform differences
Copy link
Owner

@jeremylong jeremylong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core changes to core tests test cases utils changes to utils
Projects
None yet
2 participants