PROPFIND with a unicode ID fails
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Zope 3 | Status tracked in 3.4 | |||||
3.4 |
Fix Released
|
Critical
|
Dmitry Vasiliev |
Bug Description
I've attached a simple little test script. It does a PUT, then a GET, then a PROPFIND for a unicode URL (encoded as UTF8).
The PUT and GET work correctly. The PROPFIND fails - but then yields a UnicodeEncodeError rendering the error message. The traceback from the trunk is below (the traceback from the webdav branch is very similar, but a few method names have changed. I'm also attaching the test script.
Traceback (most recent call last):
Module zope.publisher.
result = publication.
Module zope.app.
return mapply(ob, request.
Module zope.publisher.
return debug_call(object, args)
- __traceback_info__: <bound method PROPFIND.PROPFIND of <zope.app.
Module zope.publisher.
return object(*args)
Module zope.app.
self.
Module zope.app.
self.
Module zope.app.
value = widget()
Module zope.app.
return str(self)
Module zope.app.
return str(self._data)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xa9' in position 10: ordinal not in range(128)
Changes: submitter email, importance (medium => critical)