[Bug 1397170] [NEW] admin CGI throws UnicodeDecodeError when certain list text attrubutes are unicodes
Public bug reported: It is possible for the text values of various list attributes such as info, welcome_msg, msg_footer and topics names and descriptions to be unicodes. One way this may happen is if they are set via bin/config_list from an input file with a # -*- coding: utf-8 -*- line. There may be other ways. It is not completely clear exactly how this happens. If these attributes are unicodes, attempts to display them in the lists admin GUI result in UnicodeDecodeError exceptions. This will be fixed to avoid the exception by displaying the representation of the attribute rather than the attribute in cases of text attributes whose value is not a string. ** Affects: mailman Importance: Low Assignee: Mark Sapiro (msapiro) Status: In Progress -- You received this bug notification because you are a member of Mailman Coders, which is subscribed to GNU Mailman. https://bugs.launchpad.net/bugs/1397170 Title: admin CGI throws UnicodeDecodeError when certain list text attrubutes are unicodes To manage notifications about this bug go to: https://bugs.launchpad.net/mailman/+bug/1397170/+subscriptions
** Branch linked: lp:mailman/2.1 -- You received this bug notification because you are a member of Mailman Coders, which is subscribed to GNU Mailman. https://bugs.launchpad.net/bugs/1397170 Title: admin CGI throws UnicodeDecodeError when certain list text attrubutes are unicodes To manage notifications about this bug go to: https://bugs.launchpad.net/mailman/+bug/1397170/+subscriptions
** Changed in: mailman Status: In Progress => Fix Committed -- You received this bug notification because you are a member of Mailman Coders, which is subscribed to GNU Mailman. https://bugs.launchpad.net/bugs/1397170 Title: admin CGI throws UnicodeDecodeError when certain list text attrubutes are unicodes To manage notifications about this bug go to: https://bugs.launchpad.net/mailman/+bug/1397170/+subscriptions
The fix that avoided the exception by displaying the representation of the attribute rather than the attribute in cases of text attributes whose value is not a string caused issues if the page that displayed the representation(s) was 'submitted'. This the fix has been changed to encode unicode text values in the character set of the list's language and replace any characters that can't be encoded in that character set. -- You received this bug notification because you are a member of Mailman Coders, which is subscribed to GNU Mailman. https://bugs.launchpad.net/bugs/1397170 Title: admin CGI throws UnicodeDecodeError when certain list text attrubutes are unicodes To manage notifications about this bug go to: https://bugs.launchpad.net/mailman/+bug/1397170/+subscriptions
** Changed in: mailman Status: Fix Committed => Fix Released ** Changed in: mailman Milestone: 2.1.19 => 2.1.19rc1 -- You received this bug notification because you are a member of Mailman Coders, which is subscribed to GNU Mailman. https://bugs.launchpad.net/bugs/1397170 Title: admin CGI throws UnicodeDecodeError when certain list text attrubutes are unicodes To manage notifications about this bug go to: https://bugs.launchpad.net/mailman/+bug/1397170/+subscriptions
participants (2)
-
Launchpad Bug Tracker
-
Mark Sapiro