Skip Menu |

This queue is for tickets about the Mail-DKIM CPAN distribution.

Report information
The Basics
Id: 124155
Status: patched
Priority: 0/
Queue: Mail-DKIM

People
Owner: mbradshaw [...] cpan.org
Requestors: abraxxa [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.52
Fixed in: 0.53



Subject: t/policy.t fails on 5.26.1
all my Perl modules are up2date, Perl is a perlbrewed 5.26.1 on Ubuntu 17.10 64bit with up2date patches. My network is IPv6 enabled (also DNS), wireshark shows only a dns query for the TXT record of _domainkey.policy.test.authmilter.org which seems to come from line 20 of this test. [alex@alex-pc:~/.cpanm/work/1516541074.19275/Mail-DKIM-0.52$ ]$ perl -Ilib -MCarp::Always t/policy.t 1..19 ok 1 - new() works ok 2 - parse() works ok 3 - fetch() works (requires DNS) ok 4 - not the default policy ok 5 - parse() works (no tags) ok 6 - note tag has default value ok 7 - note tag has been changed ok 8 - policy tag has default value ok 9 - policy tag has been changed ok 10 - testing flag has default value ok 11 - as_string() method is implemented DNS error: SERVFAIL at lib/Mail/DKIM/DNS.pm line 182. Mail::DKIM::DNS::query("_domainkey.doesnotexist.test.authmilter.org.invalid", "TXT") called at lib/Mail/DKIM/DNS.pm line 206 eval {...} called at lib/Mail/DKIM/DNS.pm line 209 Mail::DKIM::DNS::__ANON__() called at lib/Mail/DKIM/Policy.pm line 52 Mail::DKIM::Policy::fetch("Mail::DKIM::DkPolicy", "Protocol", "dns", "Sender", "alfred\@doesnotexist.test.authmilter.org.invalid") called at lib/Mail/DKIM/DNS.pm line 200. Mail::DKIM::DNS::__ANON__("DNS error: SERVFAIL\x{a} at lib/Mail/DKIM/DNS.pm line 182.\x{a}\x{9}Mail:"...) called at lib/Mail/DKIM/DNS.pm line 210 Mail::DKIM::DNS::__ANON__() called at lib/Mail/DKIM/Policy.pm line 52 Mail::DKIM::Policy::fetch("Mail::DKIM::DkPolicy", "Protocol", "dns", "Sender", "alfred\@doesnotexist.test.authmilter.org.invalid") called at t/policy.t line 45 # Looks like your test exited with 255 just after 11.
Hi, It looks like your local resolver is returning a SERVFAIL for a non existent domain while the code is expecting a NXDOMAIN result. Clearly these tests shouldn't be reliant on a specific local resolver environment so I will make those author tests in the next release. Thanks for the report. -Marc
patched in repo pending release
On Sun Jan 21 20:20:25 2018, MBRADSHAW wrote: Show quoted text
> patched in repo pending release
Still fails with 0.53: t/policy.t ...................... 1/19 DNS query timeout for _domainkey.policy.test.authmilter.org at /home/alex/.cpanm/work/1527676343.2731/Mail-DKIM-0.53/blib/lib/Mail/DKIM/DNS.pm line 152