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 graph hashmap key mangling on analysis service invoke #786

Conversation

JimFuller-RedHat
Copy link
Collaborator

@JimFuller-RedHat JimFuller-RedHat commented Sep 11, 2024

result.id strings out to a uuid prefixed with "urn:uuid" ... which when analysis service is invoked in ingestor results in 2 entries in graph hashmap of the same graph (e.g one with a key of normal hypenated uuid and the other with a urn:uuid prefix. That is because lazy loading uses just the unadorned uuid string ... so eventually between using REST API search (lazy loading) and ingestor we end up with two different entries in the hashmap of the same sbom - that was silly/wrong.

The fix chops off the urn:uuid bit from the string and its ugly - open to any better suggestions.

@JimFuller-RedHat JimFuller-RedHat added this pull request to the merge queue Sep 11, 2024
Merged via the queue into trustification:main with commit f58d7df Sep 11, 2024
1 check passed
@JimFuller-RedHat JimFuller-RedHat deleted the minor-fix-analysis-service branch September 11, 2024 19:38
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.

2 participants