Submitted by : simon at: 2009-10-22T19:26:09-07:00 (8 years ago)
Name :
Category : Severity : Status :
Optional subject :  
Optional comment :

Noticed in zwiki.org event log: this url (from msnbot):

http://zwiki.org/InternationalCharacterExamples%3Fsubject=Greek%2520-%2520%25CE%2595%25CE%25BB%25CE%25BB%25CE%25B7%25CE%25BD%25CE%25B9%25CE%25BA%25CE%25AC&in_r%5Ceply_to=%253C20070212224444-0800%2540zwiki.org%253E

gives:

Traceback (innermost last):
 Module ZPublisher.Publish, line 127, in publish
 Module ZPublisher.mapply, line 77, in mapply
 Module ZPublisher.Publish, line 47, in call_object
 Module Products.ZWiki.ZWikiPage, line 239, in __call__
 Module Products.ZWiki.ZWikiPage, line 251, in render
 Module Products.ZWiki.plugins.pagetypes.rst, line 54, in render
 Module Products.ZWiki.Views, line 435, in addSkinTo
 Module Shared.DC.Scripts.Bindings, line 324, in __call__
 Module Shared.DC.Scripts.Bindings, line 361, in _bindAndExec
 Module Products.PageTemplates.PageTemplateFile, line 130, in _exec
 Module Products.PageTemplates.PageTemplate, line 80, in pt_render
 Module zope.pagetemplate.pagetemplate, line 115, in pt_render
 Module zope.tal.talinterpreter, line 271, in __call__
 Module zope.tal.talinterpreter, line 343, in interpret
 Module zope.tal.talinterpreter, line 888, in do_useMacro
 Module zope.tal.talinterpreter, line 343, in interpret
 Module zope.tal.talinterpreter, line 533, in do_optTag_tal
 Module zope.tal.talinterpreter, line 518, in do_optTag
 Module zope.tal.talinterpreter, line 513, in no_tag
 Module zope.tal.talinterpreter, line 343, in interpret
 Module zope.tal.talinterpreter, line 946, in do_defineSlot
 Module zope.tal.talinterpreter, line 343, in interpret
 Module zope.tal.talinterpreter, line 888, in do_useMacro
 Module zope.tal.talinterpreter, line 343, in interpret
 Module zope.tal.talinterpreter, line 888, in do_useMacro
 Module zope.tal.talinterpreter, line 343, in interpret
 Module zope.tal.talinterpreter, line 852, in do_condition
 Module zope.tal.talinterpreter, line 343, in interpret
 Module zope.tal.talinterpreter, line 376, in do_startEndTag
 Module zope.tal.talinterpreter, line 405, in do_startTag
 Module zope.tal.talinterpreter, line 482, in attrAction_tal
 Module Products.PageTemplates.Expressions, line 203, in evaluateText
 Module Products.PageTemplates.Expressions, line 224, in _handleText
UnicodeDecodeError: 'ascii' codec can't decode byte 0xce in position 8: ordinal not in range(128)

This was tricky to isolate, here is more info: the url http://zwiki.org/TestPage%3Fsubject=%CE , when proxied through apache, generates a zope request url ending with .../TestPage?subject=\316, which triggers the error.

..which is just a misencoded url, so I guess the error is appropriate. And/or, it's an apache bug.

... --simon, Thu, 29 Oct 2009 17:42:54 -0700 reply

Status: open => closed