PropertySheets xml_escape method with hardcoded encoding
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 2 |
Invalid
|
Medium
|
Sidnei da Silva |
Bug Description
While testing webdav i found the PropertySheet's xml_escape method which is called on dav's PROPGET to retrieve the properties (see OFS/PropertyShe
I wonder how zope does in general handle unicode properties / properties with strings containing unicode? Both things wont work properly with this xml_escape method.
I suggest checking if "v" is already unicode type and then just quote entities. Then in addition with the new webdav.xmltools package the properties are fully unicode type. If "v" should be not unicode type its encoding has to be guessed from the ZMI encoding setting.
well .. i did some further investigation and the webdav module would need further changes to really support unicode type strings.
Adding a .encode('UTF-8') to the string returned by PropertySheets. dav__allprop (when its unicode type) supports both unicode and non unicode type properties.