Skip to content

PURL is not deterministic in java-archive cataloger #3521

@TimBrown1611

Description

@TimBrown1611

What happened:
When i scan a file (.war) I get different results each scan. A jar with multiple pom.xml can result in, for example:

pkg:maven/org.glassfish.jaxb/jaxb-core@2.2.11
pkg:maven/com.sun.xml.bind/jaxb-core@2.2.11

What you expected to happen:
same result each time

Steps to reproduce the issue:
Repeatedly scan webgoat/webgoat container or JAR releases

Anything else we need to know?:
it impacts the number of results I get from syft.

Environment:

  • Output of syft version: 1.17.0
  • OS (e.g: cat /etc/os-release or similar): mac

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions