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

Add missing input validation #378

Open
mattias-p opened this issue Jul 1, 2024 · 0 comments
Open

Add missing input validation #378

mattias-p opened this issue Jul 1, 2024 · 0 comments
Labels
T-Bug Type: Bug in software or error in test case description
Milestone

Comments

@mattias-p
Copy link
Member

Here are a bunch of commands with invalid arguments that should be caught in the input validation layer.

zonemaster-cli --ds=1            example.  # missing --ds fields
zonemaster-cli --ds=foobar,1,1,1 example.  # invalid keytag
zonemaster-cli --ds=1,foobar,1,1 example.  # invalid algorithm
zonemaster-cli --ds=1,1,foobar,1 example.  # invalid type
zonemaster-cli --ds=1,1,1,foobar example.  # invalid digest
zonemaster-cli --encoding=foobar example.  # invalid encoding
zonemaster-cli --locale=foobar   example.  # invalid locale
zonemaster-cli --hints=/         example.  # file cannot be opened for reading
zonemaster-cli --restore=/       example.  # file cannot be opened for reading
zonemaster-cli --save=/          example.  # file cannot be opened for writing
@matsduf matsduf added this to the v2024.2 milestone Jul 3, 2024
@matsduf matsduf added the T-Bug Type: Bug in software or error in test case description label Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Bug Type: Bug in software or error in test case description
Projects
None yet
Development

No branches or pull requests

2 participants