apple / ccs-calendarserver

The Calendar and Contacts Server.
https://www.calendarserver.org
Apache License 2.0
486 stars 136 forks source link

Unicode error in the event name with imip notification #345

Closed macosforgebot closed 13 years ago

macosforgebot commented 13 years ago

barbarisme@… originally submitted this as ticket:442


Current trunk throws an unicode error with imip notification. Creating a new event without imip notificaton with the event name containing accented characters (for example) works fine, but if you add an external participant (with imip notification), DCS throws this error :

2011-05-02 11:05:03+0200 [-] [mailgateway] 2011-05-02 11:05:03+0200 [-] [twext.web2.server#info] Exception rendering:
2011-05-02 11:05:03+0200 [-] [mailgateway] 2011-05-02 11:05:03+0200 [-] [twext.web2.server#error] [Failure instance: Traceback: <type 'exceptions.UnicodeDecodeError'>: 'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128)
2011-05-02 11:05:03+0200 [-] [mailgateway]      /home/barbuk/caltest/Twisted/build/lib.linux-i686-2.6/twisted/internet/defer.py:345:errback
2011-05-02 11:05:03+0200 [-] [mailgateway]      /home/barbuk/caltest/Twisted/build/lib.linux-i686-2.6/twisted/internet/defer.py:424:_startRunCallbacks
2011-05-02 11:05:03+0200 [-] [mailgateway]      /home/barbuk/caltest/Twisted/build/lib.linux-i686-2.6/twisted/internet/defer.py:441:_runCallbacks
2011-05-02 11:05:03+0200 [-] [mailgateway]      /home/barbuk/caltest/Twisted/build/lib.linux-i686-2.6/twisted/internet/defer.py:949:gotResult
2011-05-02 11:05:03+0200 [-] [mailgateway]      --- <exception caught here> ---
2011-05-02 11:05:03+0200 [-] [mailgateway]      /home/barbuk/caltest/Twisted/build/lib.linux-i686-2.6/twisted/internet/defer.py:891:_inlineCallbacks
2011-05-02 11:05:03+0200 [-] [mailgateway]      /home/barbuk/caltest/Twisted/build/lib.linux-i686-2.6/twisted/python/failure.py:338:throwExceptionIntoGenerator
2011-05-02 11:05:03+0200 [-] [mailgateway]      /home/barbuk/caltest/CalendarServer/twistedcaldav/resource.py:310:renderHTTP
2011-05-02 11:05:03+0200 [-] [mailgateway]      /home/barbuk/caltest/Twisted/build/lib.linux-i686-2.6/twisted/internet/defer.py:891:_inlineCallbacks
2011-05-02 11:05:03+0200 [-] [mailgateway]      /home/barbuk/caltest/Twisted/build/lib.linux-i686-2.6/twisted/python/failure.py:338:throwExceptionIntoGenerator
2011-05-02 11:05:03+0200 [-] [mailgateway]      /home/barbuk/caltest/CalendarServer/twext/web2/static.py:127:renderHTTP
2011-05-02 11:05:03+0200 [-] [mailgateway]      /home/barbuk/caltest/Twisted/build/lib.linux-i686-2.6/twisted/internet/defer.py:891:_inlineCallbacks
2011-05-02 11:05:03+0200 [-] [mailgateway]      /home/barbuk/caltest/Twisted/build/lib.linux-i686-2.6/twisted/python/failure.py:338:throwExceptionIntoGenerator
2011-05-02 11:05:03+0200 [-] [mailgateway]      /home/barbuk/caltest/CalendarServer/twext/web2/resource.py:109:renderHTTP
2011-05-02 11:05:03+0200 [-] [mailgateway]      /home/barbuk/caltest/Twisted/build/lib.linux-i686-2.6/twisted/internet/defer.py:893:_inlineCallbacks
2011-05-02 11:05:03+0200 [-] [mailgateway]      /home/barbuk/caltest/CalendarServer/twistedcaldav/mail.py:334:http_POST
2011-05-02 11:05:03+0200 [-] [mailgateway]      /home/barbuk/caltest/CalendarServer/twistedcaldav/mail.py:940:outbound
2011-05-02 11:05:03+0200 [-] [mailgateway]      /home/barbuk/caltest/CalendarServer/twistedcaldav/mail.py:1032:generateEmail
2011-05-02 11:05:03+0200 [-] [mailgateway]      ]

The new event is modified, but there is no communication with postfix.

INFO

ERROR STEPS

macosforgebot commented 13 years ago

mail@… originally submitted this as comment:1:⁠ticket:442


Hi Barbarisme thanks for reporting this issue, I think this is a duplicate of my #⁠409 if I am not mistaken.

macosforgebot commented 13 years ago

mail@… originally submitted this as comment:2:⁠ticket:442

macosforgebot commented 13 years ago

@wsanchez originally submitted this as comment:3:⁠ticket:442


Yeah I think this is the same as #⁠409