Ticket #26 (closed Defect: Software changed)
Todo Alarm Creation Fails
| Reported by: | wsanchez@… | Owned by: | cdaboo@… |
|---|---|---|---|
| Priority: | 4: Nice to have | Milestone: | CalendarServer-1.0 |
| Component: | Calendar Server | Severity: | Other |
| Keywords: | Cc: |
Description
2006/07/20 3:48 PM David Reid: * SUMMARY Attempting to add an alarm for a Todo item stored on the calendar server causes an exception
* STEPS TO REPRODUCE
- Create a todo
- Click due date
- Add an alarm
* RESULTS iCal claims to add an alarm but displays an error notice next to the calendar name and the server log shows the following exception
2006/07/20 15:47 PDT [-] Traceback (most recent call last): File "/usr/share/caldavd/lib/python/twisted/web2/stream.py", line 407, in _read self._gotData(result) File "/usr/share/caldavd/lib/python/twisted/web2/stream.py", line 418, in _gotData result.callback(None) File "/usr/share/caldavd/lib/python/twisted/internet/defer.py", line 229, in callback self._startRunCallbacks(result) File "/usr/share/caldavd/lib/python/twisted/internet/defer.py", line 294, in _startRunCallbacks self._runCallbacks() --- <exception caught here> --- File "/usr/share/caldavd/lib/python/twisted/internet/defer.py", line 307, in _runCallbacks self.result = callback(self.result, *args, **kw) File "/usr/share/caldavd/lib/python/twistedcaldav/method/put_common.py", line 473, in doIndexing result = doDestinationIndex(calendar) File "/usr/share/caldavd/lib/python/twistedcaldav/method/put_common.py", line 407, in doDestinationIndex destination_index.addResource(destination.fp.basename(), caltoindex) File "/usr/share/caldavd/lib/python/twistedcaldav/index.py", line 196, in addResource self._add_to_db(name, calendar) File "/usr/share/caldavd/lib/python/twistedcaldav/index.py", line 520, in _add_to_db instances = calendar.expandTimeRanges(expand_max) File "/usr/share/caldavd/lib/python/twistedcaldav/ical.py", line 652, in expandTimeRanges return self.expandSetTimeRanges(componentSet, limit) File "/usr/share/caldavd/lib/python/twistedcaldav/ical.py", line 669, in expandSetTimeRanges instances.expandTimeRanges(componentSet, limit) File "/usr/share/caldavd/lib/python/twistedcaldav/instance.py", line 133, in expandTimeRanges self._addMasterToDoComponent(component, limit) File "/usr/share/caldavd/lib/python/twistedcaldav/instance.py", line 233, in _addMasterToDoComponent duration = due - start exceptions.TypeError: unsupported operand type(s) for -: 'datetime.date' and 'datetime.datetime'
* REGRESSION This only happens for ToDos; alarms on events work fine.
Change History
Note: See
TracTickets for help on using
tickets.
