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

fix: maven component analysis xml wrong parsing of x.0 versions ( x >=0) #145

Merged
merged 2 commits into from
Jul 7, 2024

Conversation

zvigrinberg
Copy link
Collaborator

@zvigrinberg zvigrinberg commented Jul 7, 2024

Description

In maven Component analysis , we're using xml-fast-parser in order to retrieve direct dependencies from pom.xml.
in case there is a string version in the format of "x.0" ( x is an integer, x >=0 ) , then by default it omits the ".0" and convert it to number as integer - x.

We need to configure xml fast parser to ignore such cases, so it will let the string become as is in case of format x.0 ( for every natural positive integer x >= 0).

Checklist

  • I have followed this repository's contributing guidelines.
  • I will adhere to the project's code of conduct.

Signed-off-by: Zvi Grinberg <zgrinber@redhat.com>
@zvigrinberg zvigrinberg changed the title hotfix: maven component analysis xml wrong parsing of x.0 versions ( x >=0) fix: maven component analysis xml wrong parsing of x.0 versions ( x >=0) Jul 7, 2024
Signed-off-by: Zvi Grinberg <zgrinber@redhat.com>
@zvigrinberg zvigrinberg merged commit cd0ab1e into main Jul 7, 2024
5 checks passed
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.

None yet

1 participant