policyd-spf crashes on UnicodeEncodeError

Bug #1834511 reported by claus
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pypolicyd-spf (Ubuntu)
Fix Released
High
Unassigned
Xenial
Triaged
Undecided
Unassigned

Bug Description

I got this in my error logs:
Jun 25 22:49:13 mail policyd-spf[7946]: Traceback (most recent call last):
Jun 25 22:49:13 mail policyd-spf[7946]: File "/usr/bin/policyd-spf", line 708, in <module>
Jun 25 22:49:13 mail policyd-spf[7946]: sys.stdout.write('action=550 %s\n\n' % checkerReason)
Jun 25 22:49:13 mail policyd-spf[7946]: UnicodeEncodeError: 'ascii' codec can't encode character '\ufeff' in position 119: ordinal not in range(128)
Jun 25 22:49:13 mail postfix/spawn[7945]: warning: command /usr/bin/policyd-spf exit status 1
Jun 25 22:49:13 mail postfix/smtpd[7942]: warning: premature end-of-input on private/policy-spf while reading input attribute name
Jun 25 22:49:14 mail policyd-spf[7948]: Traceback (most recent call last):
Jun 25 22:49:14 mail policyd-spf[7948]: File "/usr/bin/policyd-spf", line 708, in <module>
Jun 25 22:49:14 mail policyd-spf[7948]: sys.stdout.write('action=550 %s\n\n' % checkerReason)
Jun 25 22:49:14 mail policyd-spf[7948]: UnicodeEncodeError: 'ascii' codec can't encode character '\ufeff' in position 119: ordinal not in range(128)
Jun 25 22:49:14 mail postfix/spawn[7945]: warning: command /usr/bin/policyd-spf exit status 1
Jun 25 22:49:14 mail postfix/smtpd[7942]: warning: premature end-of-input on private/policy-spf while reading input attribute name
Jun 25 22:49:14 mail postfix/smtpd[7942]: warning: problem talking to server private/policy-spf: Success

I am running Ubuntu 16.04.6 LTS
postfix-policyd-spf-python: Installed: 1.3.2-1

I found this Debian bug report https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=816850;msg=5 which suggests that the bug is fixed in version pypolicyd-spf/2.0.0-1 .

Is there a way to get this fixed in Xenial?

Revision history for this message
Scott Kitterman (kitterman) wrote :

That's correct. It was fixed in 2.0.0, but I'm not sure the fix would directly apply to 1.3.2. I've targeted the bug appropriately for 16.04. Perhaps someone involved in Ubuntu development will take a look.

Changed in pypolicyd-spf (Ubuntu Xenial):
status: New → Triaged
Changed in pypolicyd-spf (Ubuntu):
status: New → Fix Released
importance: Undecided → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.