Skip to content

Silent Failure to store with partially identical documents #48

@ashearin

Description

@ashearin

During development of document changeset functionality in bomctl, we were attempting to test storing the same document more than once, with only slight differences in the metadata of the document.

So: same sbom id, different metadata contents, same nodelist content.

The storage backend was failing to store said 'revised' documents based on the on conflict, ignore directive in the code, and the only indicator that something failed was the lack of documents in the cache.

Want to use this issue for discussion and tracking, as the maintainers have been made aware of the issue.
Topics:

  • Should we be silently failing in these situations?
  • How do we handle storing slightly modified documents successfully without duplication of every entry?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions