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

Improve modify_override errors, fix no NVT case #1435

Merged

Conversation

timopollmeier
Copy link
Member

@timopollmeier timopollmeier commented Mar 5, 2021

What:
The command will now return relevant syntax errors if the threat or
severity elements are invalid or required ones are missing.
Also, the case where no NVT OID is given has been fixed.

Why:
The improved error messages help clarify to users what kind of input
is expected and the NVT case make the behavior consistent with the
GMP specification.

How did you test it:
By running the command via gvm-pyshell.

Checklist:

The command will now return relevant syntax errors if the threat or
severity elements are invalid or required ones are missing.
Also, the case where no NVT OID is given has been fixed.
@timopollmeier timopollmeier marked this pull request as ready for review March 5, 2021 14:58
@timopollmeier timopollmeier requested a review from a team as a code owner March 5, 2021 14:58
Copy link
Contributor

@bjoernricks bjoernricks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@bjoernricks bjoernricks merged commit 26e7727 into greenbone:gvmd-20.08 Mar 8, 2021
@timopollmeier timopollmeier added backport-to-stable This pull request will be backported to the stable branch backport-to-main This pull request will be ported to the master branch labels Mar 8, 2021
@timopollmeier
Copy link
Member Author

@Mergifyio refresh

@mergify
Copy link
Contributor

mergify bot commented Mar 8, 2021

Command refresh: success

Pull request refreshed

timopollmeier added a commit that referenced this pull request Mar 8, 2021
The conflict in the modify_override improvement was due to the "Debug"
severity level being removed.
bjoernricks added a commit that referenced this pull request Mar 8, 2021
Improve modify_override errors, fix no NVT case (bp #1435)
timopollmeier added a commit that referenced this pull request Mar 8, 2021
The conflict in the modify_override improvement was due to the "Debug"
severity level being removed.
bjoernricks added a commit that referenced this pull request Mar 8, 2021
Improve modify_override errors, fix no NVT case (bp #1435)
@timopollmeier timopollmeier deleted the modify_override-improvement branch October 15, 2021 12:07
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 backport-to-stable This pull request will be backported to the stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants