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: Use right case for NVT timeout preference #2100

Merged
merged 2 commits into from
Oct 26, 2023

Conversation

mattmundell
Copy link
Contributor

@mattmundell mattmundell commented Oct 25, 2023

What

Use lowercase "timeout" when matching the timeout preference in init_nvt_preference_iterator and nvt_default_timeout.

Why

OSP uses lowercase for this preference. The capitalization is left over from OTP.

To reproduce, in GSA edit a config, edit the family "Product detection" and then edit the NVT "Eggdrop detection" (OID 1.3.6.1.4.1.25623.1.0.100206). Before the PR there was an extra Timeout preference, and the special Timeout preference in the top row was missing the default value (3600).

References

The timeout prefs in the db were updated to lowercase in 2019 in b594763 as part of /pull/744.

@github-actions
Copy link

github-actions bot commented Oct 25, 2023

Conventional Commits Report

Type Number
Bug Fixes 2

🚀 Conventional commits found.

@mattmundell mattmundell changed the title Fix: use right case in nvt_default_timeout Fix: use right case in nvt timeout pref Oct 25, 2023
@mattmundell mattmundell changed the title Fix: use right case in nvt timeout pref Fix: Use right case in NVT timeout pref Oct 25, 2023
@mattmundell mattmundell marked this pull request as ready for review October 25, 2023 14:58
@mattmundell mattmundell requested a review from a team as a code owner October 25, 2023 14:58
@mattmundell mattmundell changed the title Fix: Use right case in NVT timeout pref Fix: Use right case for NVT timeout pref Oct 25, 2023
@mattmundell mattmundell changed the title Fix: Use right case for NVT timeout pref Fix: Use right case for NVT timeout preference Oct 25, 2023
@timopollmeier timopollmeier merged commit 9d4cbf6 into greenbone:main Oct 26, 2023
9 checks passed
@mattmundell mattmundell deleted the edit-config-timeouts branch October 26, 2023 14:24
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