Skip to content

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
jeremylong
jeremylong previously approved these changes Jan 11, 2025
Copy link
Collaborator

@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

…of detail

Resolves the NPE reported in jeremylong/DependencyCheck#7254 (comment)

Logs a warning for each entry in the response that does not have the checksums block that is to be expected for any
request that has the `X-Result-Detail: info` HTTP header.
@aikebah aikebah marked this pull request as ready for review January 24, 2025 20:39
@jeremylong jeremylong merged commit 406ea7f into main Jan 25, 2025
9 checks passed
@jeremylong jeremylong deleted the feat/artifactory branch January 25, 2025 12:48
@jeremylong jeremylong added this to the 12.0.2 milestone Jan 25, 2025
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

core changes to core tests test cases utils changes to utils

Projects

None yet

2 participants