UnicodeDecodeError on sending content and visualizing "Statistics" page
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| Singing & Dancing |
Undecided
|
Unassigned |
Bug Description
Hi,
I tried to send a page content from my site and got an error. After that error, whenever I go to the Statistics page I get the error attached here. Maybe the problem is caused by accented characters?
Thanks for your time,
Andrea.
Andrea Russo (andrea-russo) wrote : | #1 |
Daniel Nouri (daniel.nouri) wrote : | #2 |
Andrea Russo (andrea-russo) wrote : | #3 |
Dear Daniel,
thank you for your reply.
I tried to change laguage but the problem seems to be linked to the
content of a particular page in my site. You can see the page contents
below.
I attached also the error full trace.
If I can do other tests to help debugging this problem, please let me
know.
Thank you very much for your help.
Page Contents:
title: Attività del Focal Point Nazionale IPCC
description: Le principali attività del Focal Point Nazionale IPCC
<p>Le principali attività del Focal Point Nazionale IPCC includono:</p>
<ul><li>la raccolta di informazioni e la documentazione delle attività tecnico-
<p>L’attività di Focal Point IPCC per l’Italia è svolta dal <a title="Contatti" class="
<p> </p>
Andrea Russo (andrea-russo) wrote : | #4 |
Hi,
I've got a little time to investigate further and now I can be more
precise about the bug I'm experiencing.
It seems that the problem is in the accented letter in the title of
the Plone document I pasted in the previous message.
In fact, just for try, I commented this line in page template
`collective.
<td tal:content=
and the exception when I visit the statistics page isn't raised
anymore.
I'm not able to find the right place in the code to fix this, but I
hope this information is of some help.
Thank you and best regards,
Andrea.
Sivan Greenberg (sivan) wrote : | #5 |
I'm experiencing the same bug, this time after queuing a hebrew page to be sent from the statistics page, this is the traceback:
2008-12-02 15:20:11 ERROR Zope.SiteErrorLog http://
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 plone.z3cform.
Module Shared.
Module Shared.
Module Products.
Module Products.
Module zope.pagetempla
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Sivan Greenberg (sivan) wrote : | #6 |
I can confirm commenting <td tal:content=
Sivan Greenberg (sivan) wrote : | #7 |
I've done some debugging of my own, which reveals that the exception for me occurs in:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd7 in position 0: ordinal not in range(128)
> /media/
-> return unicode(
the piece of code is:
(Pdb) 156 u'This is ${name}'
157 """
158
159 def replace(match):
160 whole, param1, param2 = match.groups()
161 -> return unicode(
162
163 if not text or not mapping:
164 return text
165
166 return _interp_
and I can confirm this happens only when the title is set with hebrew text
tmog (mogensen) wrote : | #8 |
The UnicodeDecodeError on "Statistics" is indeed the result of a bad message in job.title when the content being sent has a non-ascii title.
I've committed a fix in r76770.
Andrea Russo (andrea-russo) wrote : | #9 |
Hi,
I can confirm that the fix is working here.
Thank you very much for your help.
Regards,
Andrea.
Daniel Widerin (saily) wrote : | #10 |
thanks tmog,
this is part of collective.dancing 0.8.3 and collective.singing 0.6.7
Changed in singing-dancing: | |
status: | New → Fix Released |
Andrea,
can you try and change your user interface language? The error log looks like it's failing while it tries to translate parts of the user interface. Is there a buggy PO file involved, maybe?