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

Don't handle qod_type via tags. #647

Merged
merged 1 commit into from
Jul 21, 2019

Conversation

janowagner
Copy link
Member

This resolves a unintended redundancy. The qod_type
is handled explicitley in the table "nvts" and also in the "nvt" GMP
object. But it also still occurs in the tags element which does
not make sense. Analog to the timestamps it should have been removed
from there.

This patch uses the new API for the nvti object to add the QoD Type
directly when loading a OSP VT object rather than adding it to
the "tags" element.

Consequently, it will get the qod_type via the new API rather than
parse it from the tags section.

This change has two advantages:

  • In column "tags" of table "nvts" the string element
    "|qod_type=some-type" is not added anymore.
    This saves space and parsing time.

  • The qod_type is not parsed from the tags element anymore.
    This saves parsing time.

The gains might not be significant though.

The user API is changed at the level of a bug fix:
The "qod_type=" part of the tags should have never been there
and never be used. It was undocumented anyway.

Checklist:

This resolves a unintended redundancy. The qod_type
is handled explicitley in the table "nvts" and also in the "nvt" GMP
object. But it also still occurs in the tags element which does
not make sense. Analog to the timestamps it should have been removed
from there.

This patch uses the new API for the nvti object to add the QoD Type
directly when loading a OSP VT object rather than adding it to
the "tags" element.

Consequently, it will get the qod_type via the new API rather than
parse it from the tags section.

This change has two advantages:

* In column "tags" of table "nvts" the string element
"|qod_type=some-type" is not added anymore.
This saves space and parsing time.

* The qod_type is not parsed from the tags element anymore.
This saves parsing time.

The gains might not be significant though.

The user API is changed at the level of a bug fix:
The "qod_type=" part of the tags should have never been there
and never be used. It was undocumented anyway.
@janowagner
Copy link
Member Author

The changes depend on greenbone/gvm-libs#250

The build tests will fail until that patch is merged.

@mattmundell mattmundell merged commit 1a7e036 into greenbone:master Jul 21, 2019
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