bin/sync_members throws UnicodeDecodeError with non-ascii names.

Bug #1243343 reported by Mark Sapiro
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNU Mailman
Fix Released
High
Mark Sapiro

Bug Description

If bin/sync_members is adding a member whose display name includes non-ascii, it can throw a UnicodeDecodeError as in

Traceback (most recent call last):
  File "/usr/local/mailman/bin/sync_members", line 288, in <module>
    main()
  File "/usr/local/mailman/bin/sync_members", line 259, in main
    s = email.Utils.formataddr((name, addr)).encode(enc, 'replace')
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 3: ordinal not in range(128)

A similar issue may occur with removal.

Related branches

Mark Sapiro (msapiro)
Changed in mailman:
status: In Progress → Fix Committed
Mark Sapiro (msapiro)
Changed in mailman:
status: Fix Committed → Fix Released
Revision history for this message
Mark Sapiro (msapiro) wrote :

The prior fix released in 2.1.17 could throw a TypeError if the display name of a member to be deleted was already a Unicode.

Changed in mailman:
importance: Undecided → High
milestone: 2.1.17 → 2.1.18
status: Fix Released → Fix Committed
Mark Sapiro (msapiro)
Changed in mailman:
milestone: 2.1.18 → 2.1.18rc1
status: Fix Committed → Fix Released
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.