[CalendarServer-users] hi please help CalDav server error
arun chhetri
chhetriarun84 at gmail.com
Mon Aug 11 10:40:56 PDT 2008
Hi,I am facing the same problem which u faced previously with the reports,
I am getting this error ...
2008-08-11 11:14:51-0500 [-] [caldav-8009] [AMP,client] OPTIONS
/principals/users/vyom/ HTTP/1.1
2008-08-11 11:14:51-0500 [-] [caldav-8009] [AMP,client] PROPFIND
/principals/users/vyom/ HTTP/1.1
2008-08-11 11:14:51-0500 [-] [caldav-8009] [AMP,client] PROPFIND
/principals/users/vyom/ HTTP/1.1
2008-08-11 11:14:51-0500 [-] [caldav-8009] [AMP,client] PROPFIND
/calendars/__uids__/12848531-D888-4724-BA78-F6C015624F0A/ HTTP/1.1
2008-08-11 11:14:51-0500 [-] [caldav-8009] [AMP,client] REPORT
/calendars/__uids__/12848531-D888-4724-BA78-F6C015624F0A/calendar/ HTTP/1.1
2008-08-11 11:14:51-0500 [-] [caldav-8009] [-] Exception rendering:
2008-08-11 11:14:51-0500 [-] [caldav-8009] [-] Unhandled Error
2008-08-11 11:14:51-0500 [-] [caldav-8009] Traceback (most recent call
last):
2008-08-11 11:14:51-0500 [-] [caldav-8009] File
"/usr/share/caldavd/lib/python/twisted/internet/defer.py", line 239, in
callback
2008-08-11 11:14:51-0500 [-] [caldav-8009]
self._startRunCallbacks(result)
2008-08-11 11:14:51-0500 [-] [caldav-8009] File
"/usr/share/caldavd/lib/python/twisted/internet/defer.py", line 304, in
_startRunCallbacks
2008-08-11 11:14:51-0500 [-] [caldav-8009] self._runCallbacks()
2008-08-11 11:14:51-0500 [-] [caldav-8009] File
"/usr/share/caldavd/lib/python/twisted/internet/defer.py", line 317, in
_runCallbacks
2008-08-11 11:14:51-0500 [-] [caldav-8009] self.result =
callback(self.result, *args, **kw)
2008-08-11 11:14:51-0500 [-] [caldav-8009] File
"/usr/share/caldavd/lib/python/twisted/internet/defer.py", line 601, in
gotResult
2008-08-11 11:14:51-0500 [-] [caldav-8009] _deferGenerator(g, deferred)
2008-08-11 11:14:51-0500 [-] [caldav-8009] --- <exception caught here> ---
2008-08-11 11:14:51-0500 [-] [caldav-8009] File
"/usr/share/caldavd/lib/python/twisted/internet/defer.py", line 576, in
_deferGenerator
2008-08-11 11:14:51-0500 [-] [caldav-8009] result = g.next()
2008-08-11 11:14:51-0500 [-] [caldav-8009] File
"/usr/share/caldavd/lib/python/twistedcaldav/method/report.py", line 131, in
http_REPORT
2008-08-11 11:14:51-0500 [-] [caldav-8009] yield d.getResult()
2008-08-11 11:14:51-0500 [-] [caldav-8009] File
"/usr/share/caldavd/lib/python/twisted/internet/defer.py", line 555, in
getResult
2008-08-11 11:14:51-0500 [-] [caldav-8009] self.result.raiseException()
2008-08-11 11:14:51-0500 [-] [caldav-8009] File
"/usr/share/caldavd/lib/python/twisted/python/failure.py", line 303, in
raiseException
2008-08-11 11:14:51-0500 [-] [caldav-8009] raise self.type, self.value,
self.tb
2008-08-11 11:14:51-0500 [-] [caldav-8009] exceptions.AttributeError: tzid
when I have report something like this
<?xml version="1.0" encoding="utf-8" ?>
<C:calendar-query xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
<D:prop>
<D:getetag/>
<C:calendar-data>
<C:comp name="VCALENDAR">
<C:prop name="VERSION"/>
<C:comp name="VEVENT">
<C:prop name="SUMMARY"/>
<C:prop name="UID"/>
<C:prop name="DTSTART"/>
<C:prop name="DTEND"/>
<C:prop name="DURATION"/>
<C:prop name="RRULE"/>
<C:prop name="RDATE"/>
<C:prop name="EXRULE"/>
<C:prop name="EXDATE"/>
<C:prop name="RECURRENCE-ID"/>
</C:comp>
<C:comp name="VTIMEZONE"/>
</C:comp>
</C:calendar-data>
</D:prop>
<C:filter>
<C:comp-filter name="VCALENDAR">
<C:comp-filter name="VEVENT">
<C:time-range start="20080801T050000Z" end="20080930T050000Z"/>
</C:comp-filter>
</C:comp-filter>
</C:filter>
</C:calendar-query>
But I saw your post on http://trac.calendarserver.org/ticket/187
then I made the report to have this:
<C:comp name="VTIMEZONE">
<C:allprop/> <C:allcomp/>
</C:comp>
the Report now look like this
<?xml version="1.0" encoding="utf-8" ?>
<C:calendar-query xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
<D:prop>
<D:getetag/>
<C:calendar-data>
<C:comp name="VCALENDAR">
<C:prop name="VERSION"/>
<C:comp name="VEVENT">
<C:prop name="SUMMARY"/>
<C:prop name="UID"/>
<C:prop name="DTSTART"/>
<C:prop name="DTEND"/>
<C:prop name="DURATION"/>
<C:prop name="RRULE"/>
<C:prop name="RDATE"/>
<C:prop name="EXRULE"/>
<C:prop name="EXDATE"/>
<C:prop name="RECURRENCE-ID"/>
</C:comp>
<C:comp name="VTIMEZONE"/>
<C:allprop/> <C:allprop/>
</C:comp>
</C:comp>
</C:calendar-data>
</D:prop>
<C:filter>
<C:comp-filter name="VCALENDAR">
<C:comp-filter name="VEVENT">
<C:time-range start="20080801T050000Z" end="20080830T050000Z"/>
</C:comp-filter>
</C:comp-filter>
</C:filter>
</C:calendar-query>
and now it throws error and says Bad request. Error log says that
'Bad XML:\n<?xml version="1.0" encoding="utf-8" ?>\n<C:calendar-query
xmlns:D="DAV:"
xmlns:C="urn:ietf:params:xml:ns:caldav">\n\t<D:prop>\n\t\t<D:getetag/>\n\t\t<C:calendar-data>\n\t\t\t<C:comp
name="VCALENDAR">\n\t\t\t\t<C:prop name="VERSION"/>\n\t\t\t\t<C:comp
name="VEVENT">\n\t\t\t\t\t<C:prop name="SUMMARY"/>\n\t\t\t\t\t<C:prop
name="UID"/>\n\t\t\t\t\t<C:prop name="DTSTART"/>\n\t\t\t\t\t<C:prop
name="DTEND"/>\n\t\t\t\t\t<C:prop name="DURATION"/>\n\t\t\t\t\t<C:prop
name="RRULE"/>\n\t\t\t\t\t<C:prop name="RDATE"/>\n\t\t\t\t\t<C:prop
name="EXRULE"/>\n\t\t\t\t\t<C:prop name="EXDATE"/>\n\t\t\t\t\t<C:prop
name="RECURRENCE-ID"/>\n\t\t\t\t</C:comp>\n\t\t\t\t<C:comp
name="VTIMEZONE"/>\n\t\t\t\t\t<C:allprop/>\n\t\t\t\t\t<\\C:allprop/>\n\t\t\t\t</C:comp>\n\t\t\t</C:comp>\n\t\t</C:calendar-data>\n\t</D:prop>\n\t\t<C:filter>\n\t\t\t<C:comp-filter
name="VCALENDAR">\n\t\t\t\t<C:comp-filter
name="VEVENT">\n\t\t\t\t\t<C:time-range start="20080801T050000Z"
end="20080830T050000Z"/>\n\t\t\t\t</C:comp-filter>\n\t\t\t</C:comp-filter>\n\t\t</C:filter>\n</C:calendar-query>\n'
2008-08-11 12:38:29-0500 [-] [caldav-8009] [-] 'Error while handling REPORT
body: <unknown>:22:6: not well-formed (invalid token)'
please help,,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-users/attachments/20080811/b63a41eb/attachment-0001.html
More information about the calendarserver-users
mailing list