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

Fatal error in DNSSEC: Key list is empty at /usr/local/share/perl/5.26.1/Zonemaster/Engine/Test/DNSSEC.pm line 2627. #1036

Closed
matsduf opened this issue Jan 14, 2022 · 4 comments · Fixed by #1037
Assignees
Labels
T-Bug Type: Bug in software or error in test case description
Milestone

Comments

@matsduf
Copy link
Contributor

matsduf commented Jan 14, 2022

The second error is some kind of bug. (The first error is test case specification issue.)

$ zonemaster-cli atiger.se --show-testcase --level error --test dnssec --raw
   9.34 ERROR     DNSSEC09       DS09_NO_MATCHING_DNSKEY   keytag=53612; ns_ip_list=185.42.137.98;194.58.192.46;194.58.198.32;2a01:3f0:400::32;2a01:3f1:3032::53;2a01:3f1:46::53
   9.36 CRITICAL  UNSPECIFIED    MODULE_ERROR   module=DNSSEC; msg=Key list is empty at /usr/local/share/perl/5.26.1/Zonemaster/Engine/Test/DNSSEC.pm line 2627.

Saved data: atiger.se-issue-1035-2022-01-14.save.gz

Also see zonemaster/zonemaster#1035

@matsduf matsduf added the T-Bug Type: Bug in software or error in test case description label Jan 14, 2022
@matsduf matsduf added this to the v2022.1 milestone Jan 14, 2022
@mattias-p
Copy link
Member

mattias-p commented Jan 14, 2022

There are actually three bugs in play here. The one in the business logic is addressed in #1037. But there are also two error handling bugs.

  1. We're leaking internal details in the messages. The msg value should be something generic like "Internal error" without references into the code. The exception itself should be sent to Log::Any so that it can be handled appropriately by CLI or Backend or whatever application.
  2. We're failing to identify where the error originated, labeling the test case as "UNSPECIFIED".

@matsduf
Copy link
Contributor Author

matsduf commented Jan 14, 2022

  1. We're leaking internal details in the messages. The msg value should be something generic like "Internal error" without references into the code. The exception itself should be sent to Log::Any so that it can be handled appropriately by CLI or Backend or whatever application.

When running CLI it should be OK to reveal the code. In many cases I think we want to be able to get that information with CLI.

@mattias-p
Copy link
Member

When running CLI it should be OK to reveal the code. In many cases I think we want to be able to get that information with CLI.

Yes, for CLI a log adapter that prints to STDERR would be quite appropriate.

@matsduf
Copy link
Contributor Author

matsduf commented Mar 7, 2022

Resolved by #1037

@matsduf matsduf assigned tgreenx and unassigned vlevigneron Apr 12, 2022
@matsduf matsduf closed this as completed Apr 14, 2022
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

Successfully merging a pull request may close this issue.

4 participants