Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@luhring
Copy link
Contributor

@luhring luhring commented Jan 25, 2021

Fixes #252 (and duplicate issue #291)

(this fix was provided by @wagoodman)

Signed-off-by: Alex Goodman [email protected]

@luhring luhring force-pushed the issue-291-java-parent-ref branch from 54f63bb to bb1facb Compare January 27, 2021 15:12
@luhring luhring marked this pull request as ready for review January 27, 2021 15:41
}

pkgKey := uniquePkgKey(&p)
if propsObj.Version != "" && propsObj.ArtifactID != "" {
Copy link
Contributor

Choose a reason for hiding this comment

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

is it possible to continue correctly if there is a Version but there is no ArtifactID ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@alfredodeza Fair question, tbh I'm not sure. This set of methods needs a lot of work: to simplify, to more clearly express business concerns, to reduce possible states, etc. I have a branch set to the side where I've started this, but wanted to keep the scope down for this impending release.

@luhring luhring merged commit 407769e into main Jan 27, 2021
@luhring luhring deleted the issue-291-java-parent-ref branch January 27, 2021 16:51
GijsCalis pushed a commit to GijsCalis/syft that referenced this pull request Feb 19, 2024
Ensure java parent pkg ref isn't nil when looking for parent matches
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

Successfully merging this pull request may close these issues.

SIGSEGV in discoverPkgsFromPomProperties on parsing Java pom.properties

4 participants