Bug 1506881
| Summary: | AddressValueError: '' does not appear to be an IPv4 or IPv6 address. Did you pass in a bytes (str in Python 2) instead of a unicode object? | ||
|---|---|---|---|
| Product: | [Fedora] Fedora EPEL | Reporter: | Frank Büttner <bugzilla> |
| Component: | pypolicyd-spf | Assignee: | Bojan Smojver <bojan> |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | urgent | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | epel7 | CC: | bojan |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-10-27 05:00:17 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
*** This bug has been marked as a duplicate of bug 1506445 *** |
Description of problem: After the last update, the package is broken. Version-Release number of selected component (if applicable): pypolicyd-spf-1.3.2-2.el7.noarch Actual results: Okt 27 06:44:00 foo.foo.foo policyd-spf[4592]: Traceback (most recent call last): Okt 27 06:44:00 foo.foo.foo policyd-spf[4592]: File "/usr/libexec/postfix/policyd-spf", line 707, in <module> Okt 27 06:44:00 foo.foo.foo policyd-spf[4592]: instance_dict, configData, peruser) Okt 27 06:44:00 foo.foo.foo policyd-spf[4592]: File "/usr/libexec/postfix/policyd-spf", line 419, in _spfcheck Okt 27 06:44:00 foo.foo.foo policyd-spf[4592]: res = spf.check2(ip, helo_fake_sender, helo, querytime=configData.get('Lookup_Time')) Okt 27 06:44:00 foo.foo.foo policyd-spf[4592]: File "/usr/lib/python2.7/site-packages/spf.py", line 297, in check2 Okt 27 06:44:00 foo.foo.foo policyd-spf[4592]: receiver=receiver,timeout=timeout,verbose=verbose,querytime=querytime).check() Okt 27 06:44:00 foo.foo.foo policyd-spf[4592]: File "/usr/lib/python2.7/site-packages/spf.py", line 378, in __init__ Okt 27 06:44:00 foo.foo.foo policyd-spf[4592]: self.set_ip(i) Okt 27 06:44:00 foo.foo.foo policyd-spf[4592]: File "/usr/lib/python2.7/site-packages/spf.py", line 405, in set_ip Okt 27 06:44:00 foo.foo.foo policyd-spf[4592]: self.ipaddr = ipaddress.ip_address(i) Okt 27 06:44:00 foo.foo.foo policyd-spf[4592]: File "/usr/lib/python2.7/site-packages/ipaddress.py", line 163, in ip_address Okt 27 06:44:00 foo.foo.foo policyd-spf[4592]: ' a unicode object?' % address) Okt 27 06:44:00 foo.foo.foo policyd-spf[4592]: AddressValueError: 'XXX.XX.XX.XX' does not appear to be an IPv4 or IPv6 address. Did you pass in a bytes (str in Python 2) instead of a unicode object? Okt 27 06:44:00 foo.foo.foo postfix/spawn[4591]: warning: command /usr/libexec/postfix/policyd-spf exit status 1 Okt 27 06:44:00 foo.foo.foo postfix/smtpd[4577]: warning: premature end-of-input on private/policy-spf while reading input attribute name Expected results: Working spf Workaround: yum downgrade https://kojipkgs.fedoraproject.org//packages/pypolicyd-spf/1.3.2/1.el7/noarch/pypolicyd-spf-1.3.2-1.el7.noarch.rpm yum remove python-ipaddress