Execute the following REST API POST /dependencyGraph/artifact to retrieve the component ID, which can serve as the correct component name:
In the CURL request, I just gave the path for the Artifact /artifactory/"artifactpath.
In the CURL request, I just gave the path for the Artifact /artifactory/"artifactpath.
curl -u admin:password -X POST -H "Content-Type: application/json" "<artifactory-url>/xray/api/v1/dependencyGraph/artifact" -d '{"path": "/artifactory/test-libs-release-local/mysql-connector-java/mysql-connector-java/5.1.41/mysql-connector-java-5.1.41.jar"}' | jq -r '.artifact.component_id'The response will contain the component_id which should be used for exporting the SBOM file.