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 "not regexp ..." filters #1482

Merged
merged 2 commits into from
Apr 13, 2021

Conversation

timopollmeier
Copy link
Member

@timopollmeier timopollmeier commented Apr 12, 2021

What:
This fixes the way SQL for negated regexp clauses is generated.

Why:
Using the filters where a "regexp" clause was negated generated invalid
SQL.

How did you test it:
By using a filter that contained a negated "regexp", e.g.
not regexp CVE-(2000-1050|2001-0404)
and one that contained a negated columnless "like" / "~" filter, e.g.
not ~"CVE-2000"

Checklist:

Using the filters where a "regexp" clause was negated generated invalid
SQL, which has been fixed.
@timopollmeier timopollmeier marked this pull request as ready for review April 12, 2021 08:05
@timopollmeier timopollmeier requested a review from a team as a code owner April 12, 2021 08:05
@timopollmeier timopollmeier added backport-to-21.04 backport-to-main This pull request will be ported to the master branch labels Apr 12, 2021
@bjoernricks bjoernricks merged commit 256e5b4 into greenbone:gvmd-20.08 Apr 13, 2021
timopollmeier added a commit that referenced this pull request Apr 14, 2021
timopollmeier added a commit that referenced this pull request Apr 14, 2021
@timopollmeier timopollmeier deleted the not-regexp-fix branch October 15, 2021 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-to-main This pull request will be ported to the master branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants