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

API search with GET-query parameters not working #24

Closed
Littlericket opened this issue Sep 18, 2023 · 1 comment
Closed

API search with GET-query parameters not working #24

Littlericket opened this issue Sep 18, 2023 · 1 comment

Comments

@Littlericket
Copy link

Searching by fields on the API via the query parameters is not working. Its default for netbox to let the API query every field for quick search capabilities.

/api/plugins/nb_risk/vulnerability/?cve=CVE-2022-37434 returns

        {
            "id": 4,
            "url": "https://netbox/api/plugins/nb_risk/vulnerability/4/",
            "display": "CentOS 7 : zlib (CESA-2023:1095)",
            "name": "CentOS 7 : zlib (CESA-2023:1095)",
            "cve": "CVE-2022-37434",
            "description": "The remote CentOS Linux host is missing a security update."
        }

/api/plugins/nb_risk/vulnerability/?cve=CVE-2000-99999 returns as well

        {
            "id": 4,
            "url": "https://netbox/api/plugins/nb_risk/vulnerability/4/",
            "display": "CentOS 7 : zlib (CESA-2023:1095)",
            "name": "CentOS 7 : zlib (CESA-2023:1095)",
            "cve": "CVE-2022-37434",
            "description": "The remote CentOS Linux host is missing a security update."
        }
@renatoalmeidaoliveira
Copy link
Owner

Fixed, please update to 3.5.1

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

No branches or pull requests

2 participants