Skip to content

fix(fp): ignore remaining POM fields with interpolated values - #8954

Open
chadlwilson wants to merge 2 commits into
dependency-check:mainfrom
chadlwilson:patch-1
Open

chadlwilson wants to merge 2 commits into
dependency-check:mainfrom
chadlwilson:patch-1

Conversation

@chadlwilson

Copy link
Copy Markdown
Collaborator

Description of Change

Ignores more Pom values that have interpolated values.

Related issues

Have test cases been added to cover the new functionality?

No

@boring-cyborg boring-cyborg Bot added the core changes to core label Nov 30, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

An active moderate issue still allows unresolved Maven expressions to leak into license evidence, and the changed filtering behavior lacks regression coverage for several affected POM fields.

2 open issues
What changed in this PR

Updates Maven POM evidence extraction to ignore unresolved interpolated values, reducing false-positive vendor and product identification.

Changes:

  • Filters interpolated organization, project, name, developer, and license metadata.
  • Replaces the special-case POM name check with shared interpolation filtering.
  • Adds no regression tests for the new behavior.
File Description
core/​src/​main/​java/​org/​owasp/​dependencycheck/​analyzer/​JarAnalyzer.java Ignores unresolved Maven expressions when deriving dependency evidence and license metadata from POM files.

Review effort: Lite

Comment on lines +1180 to 1183
tmp = nullIfInterpolated(lic.getUrl());
} else {
tmp += ": " + lic.getUrl();
}

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core changes to core

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FP]: Muliple packages detected as homepage_project:homepage

2 participants