#7 — Module iqpp.plone.commenting.subscribers, line 32, in sendCommentAddedMail - UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 11: ordinal not in range(128)

by Armin Stross-Radschinski last modified Jan 08, 2009 01:57 PM
State Unconfirmed
Version:
Area Functionality
Issue type Bug
Severity Medium
Submitted by Armin Stross-Radschinski
Submitted on Mar 04, 2008
Responsible
Target release:
Exception Type UnicodeDecodeError
Exception Value 'ascii' codec can't decode byte 0xc3 in position 11: ordinal not in range(128)

Traceback (innermost last):

    * Module ZPublisher.Publish, line 119, in publish
    * Module ZPublisher.mapply, line 88, in mapply
    * Module ZPublisher.Publish, line 42, in call_object
    * Module iqpp.plone.commenting.browser.comment_form, line 148, in addComment
    * Module iqpp.plone.commenting.adapters.commenting, line 133, in addComment
    * Module zope.event, line 23, in notify
    * Module zope.component.event, line 26, in dispatch
    * Module zope.component._api, line 130, in subscribers
    * Module zope.component.registry, line 290, in subscribers
    * Module zope.interface.adapter, line 535, in subscribers
    * Module iqpp.plone.commenting.subscribers, line 32, in sendCommentAddedMail

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 11: ordinal not in range(128)

Display traceback as text

REQUEST
form
action 'add'
add_comment 'Hinzu'
message 'Message eMail Test'
comment_id ''
subject 'Troisdorf'
cookies
AnonymousVoted729e2052b3a9f802a84edf46618cd962 '12038865479351146'
__ac 'NjE2NDZkNjk2ZTo2ZDY5NzI3MjI2Njc2NzZm'
lazy items
SESSION <bound method SessionDataManager.getSessionData of <SessionDataManager at /session_data_manager>>
other
TraversalRequestNameStack []
LANGUAGE 'de'
AUTHENTICATED_USER <PropertiedUser 'admin'>
URL 'http://www.xxx.com/xxx/xxx/add_comment/addComment'
VirtualRootPhysicalPath ('', 'xxx')
comment_id ''
VIRTUAL_URL 'http://www.xxx.com/xxx/xxx/add_comment'
SERVER_URL 'http://www.xxx.com'
LANGUAGE_TOOL <Products.PloneLanguageTool.LanguageTool.LanguageBinding instance at 0xb19bb1cc>
AUTHENTICATION_PATH 'xxx/virtual_hosting'
__ac 'NjE2NDZkNjk2ZTo2ZDY5NzI3MjI2Njc2NzZm'
PATH_INFO '/VirtualHostBase/http/www.xxx.com:80/xxx/VirtualHostRoot/xxx/xxx/add_comment'
PUBLISHED <bound method AddCommentFormView.addComment of <Products.Five.metaclass.AddCommentFormView object at 0xb170094c>>
message 'Message eMail Test'
subject 'Troisdorf'
ACTUAL_URL 'http://www.xxx.com/xxx/xxx/add_comment'
VIRTUAL_URL_PARTS ('http://www.xxx.com', 'gaestebuch/bowling-arena-spich/add_comment')
URL0 http://www.xxx.com/xxx/xxx/add_comment/addComment
URL1 http://www.xxx.com/xxx/xxx/add_comment
URL2 http://www.xxx.com/xxx/xxx
URL3 http://www.xxx.com/xxx
URL4 http://www.xxx.com
BASE0 http://www.xxx.com
BASE1 http://www.xxx.com
BASE2 http://www.xxx.com/xxx
BASE3 http://www.xxx.com/xxx/xxx
BASE4 http://www.xxx.com/xxx/xxx/add_comment
BASE5 http://www.trolance.com/[…]/addComment
environ
HTTP_MAX_FORWARDS '10'
HTTP_REFERER 'http://www.xxx.com/xxx/xxx/add_comment_form'
HTTP_ACCEPT_LANGUAGE 'en,de-de;q=0.8,de;q=0.5,en-us;q=0.3'
SERVER_SOFTWARE 'Zope/(Zope 2.10.5-final, python 2.4.4, linux2) ZServer/1.1 Plone/3.0.4'
SCRIPT_NAME ''
REQUEST_METHOD 'POST'
PATH_INFO '/VirtualHostBase/http/www.xxx.com:80/xxx/VirtualHostRoot/xxx/xxx'
SERVER_PROTOCOL 'HTTP/1.1'
channel.creation_time 1204665934
HTTP_X_FORWARDED_SERVER 'xxx'
CONTENT_LENGTH '94'
HTTP_ACCEPT_CHARSET 'ISO-8859-1,utf-8;q=0.7,*;q=0.7'
HTTP_USER_AGENT 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X; de; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12'
HTTP_COOKIE 'AnonymousVoted729e2052b3a9f802a84edf46618cd962="12038865479351146"; __ac="NjE2NDZkNjk2ZTo2ZDY5NzI3MjI2Njc2NzZm"'
SERVER_NAME '0.0.0.0'
REMOTE_ADDR 'xxxxx'
PATH_TRANSLATED '/VirtualHostBase/http/www.xxxxx.com:80/xxx/VirtualHostRoot/xxx/xxx'
SERVER_PORT 'xxxxx'
HTTP_HOST 'xxxxx'
HTTP_ACCEPT 'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5'
GATEWAY_INTERFACE 'CGI/1.1'
HTTP_X_FORWARDED_FOR 'xxxxx'
HTTP_X_FORWARDED_HOST 'xxxxx'
CONTENT_TYPE 'application/x-www-form-urlencoded'
HTTP_ACCEPT_ENCODING 'gzip,deflate'
Steps to reproduce:
based on a modified egg install Version. Enable eMail notification for commenting in an object and create a comment. On send, the described error occurs when the title of the object to be commented and dropping errors contains the german umlaute ä and ö. Different position and type of the umlaut creates different errors for character and position! Line 39 of the script is intended to avoid Unicode-Errors but sems not to work properly.

No responses can be added.