[CalendarServer-dev] [Calendar and Contacts Server] #456: Crash if name in accounts.xml contains umlaut

Calendar and Contacts Server trac at macosforge.org
Sat Jul 2 15:59:28 PDT 2011


#456: Crash if name in accounts.xml contains umlaut
----------------------------------+-----------------------------------------
 Reporter:  mail@…                |       Owner:  wsanchez@…        
     Type:  Defect                |      Status:  new               
 Priority:  5: Not set            |   Milestone:                    
Component:  Calendar Server       |    Severity:  Other             
 Keywords:                        |       Radar:                    
----------------------------------+-----------------------------------------

Comment(by mail@…):

 To start one can patch:

 {{{
 --- ./twistedcaldav/mail.py     2011-07-03 00:41:21.000000000 +0200
 +++ /usr/lib/python2.6/site-packages/twistedcaldav/mail.py      2011-07-03
 00:43:55.000000000 +0200
 @@ -854,8 +850,10 @@
          attendees = []
          for attendeeProp in calendar.getAllAttendeeProperties():
              cutype = attendeeProp.parameterValue("CUTYPE", "INDIVIDUAL")
 -            if cutype == "INDIVIDUAL" or cutype is None :
 -                cn = attendeeProp.parameterValue("CN",
 None).decode("utf-8")
 +            if cutype == "INDIVIDUAL":
 +                cn = attendeeProp.parameterValue("CN", None)
 +                if cn is not None:
 +                   cn = cn.decode("utf-8")
                  cuaddr = normalizeCUAddr(attendeeProp.value())
                  if cuaddr.startswith("mailto:"):
                      mailto = cuaddr[7:]
 }}}

 But this still does not allow umlauts in the username.

-- 
Ticket URL: <http://trac.calendarserver.org/ticket/456#comment:1>
Calendar and Contacts Server </>
HTTP/WebDAV/CalDAV Server


More information about the calendarserver-dev mailing list