Skip to content

Tools: Tool version scan can be duplicated #4172

@SilinPavel

Description

@SilinPavel

Describe the bug
tool_version_scan SQL table doesn't have constraint on unique pair (tool_id, version).
This could lead to existence of two version scans at the same time, which will also lead to having duplicates of tools in some api methods, like /dockerRegistry/loadTree

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions