Traceback when verifying if connection is IPv6
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
py3dns (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Precise |
Fix Released
|
Medium
|
Scott Kitterman | ||
Quantal |
Fix Released
|
High
|
Scott Kitterman | ||
Raring |
Fix Released
|
High
|
Scott Kitterman |
Bug Description
Only an issue with python3-spf. Python-spf is fine due to differences between pydns and py3dns.
$ python3 /usr/lib/
Traceback (most recent call last):
File "/usr/lib/
print(
File "/usr/lib/
rc = self.check1(spf, self.d, 0)
File "/usr/lib/
return self.check0(spf, recursion)
File "/usr/lib/
if self.cidrmatch(
File "/usr/lib/
for ip in [bin(ip) for ip in ipaddrs]:
File "/usr/lib/
for ip in [bin(ip) for ip in ipaddrs]:
File "/usr/lib/
h, l = struct.
TypeError: 'str' does not support the buffer interface
[Impact]
* When the spf module is used in python3, it will fail.
* For 12.10/13.04 there is one application in the archive that will do this (postfix-
[Test Case]
* Install python3-spf
* Try the command shown above in the bug
* See the traceback
* Update to the -proposed package
* Repeat the command
* See no traceback and this instead:
$ python3 spf.py 2001:7b8:206:1::53 <email address hidden> unbound.net
('pass', 250, 'sender SPF authorized') mx
[Regression Potential]
* Nil. The change is very easy to test and it will be obvious in verification if it works.
* There is a python3-dns bug in 12.04 that also needs to be fixed to make this work.
[Other Info]
Fixed in Debian and synced to saucy already.
Changed in pyspf (Ubuntu): | |
status: | New → Fix Released |
importance: | Undecided → High |
Changed in pyspf (Ubuntu Precise): | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → Scott Kitterman (kitterman) |
Changed in pyspf (Ubuntu Quantal): | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → Scott Kitterman (kitterman) |
Changed in pyspf (Ubuntu Raring): | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → Scott Kitterman (kitterman) |
Turns out the better way to fix this is in py3dns. Reverted pyspf and new py3dns uploaded to Debian and will sync soon