[CalendarServer-users] ICS File Naming
Tyler Keating
tylerkeating at mac.com
Wed Apr 11 10:24:35 PDT 2007
Hi,
I am using a UID as the filename for new iCalendar files PUT to the
server (ex. 2007-04-11T10:07:13-0600_477504818.ics) and I noticed
that these files were always renamed on the server (ex.
270IQ6~Y.ICS). But the original filename still retrieved the proper
file.
However, it is no longer working:
2007-04-11 10:52:00-0600 [-] [caldav-8082] [HTTPChannel,4,127.0.0.1]
PUT /calendars/users/keating/calendar/
2007-04-11T10:52:00-0600_822729681.ics HTTP/1.1
2007-04-11 10:52:00-0600 [-] [caldav-8082] [-] Writing to file /
Users/admin/Developer/Collaboration/CalendarServer/data/calendars/
users/keating/calendar/2007-04-11T10:52:00-0600_822729681.ics
2007-04-11 10:52:01-0600 [-] [caldav-8082] [HTTPChannel,7,127.0.0.1]
REPORT /calendars/users/keating/calendar/ HTTP/1.1
2007-04-11 10:52:01-0600 [-] [caldav-8082] [-] Exception rendering:
2007-04-11 10:52:01-0600 [-] [caldav-8082] [-] Unhandled Error
2007-04-11 10:52:01-0600 [-] [caldav-8082] Traceback (most
recent call last):
2007-04-11 10:52:01-0600 [-] [caldav-8082] File "/Users/admin/
Developer/Collaboration/Twisted/twisted/internet/defer.py", line 239,
in callback
2007-04-11 10:52:01-0600 [-] [caldav-8082]
self._startRunCallbacks(result)
2007-04-11 10:52:01-0600 [-] [caldav-8082] File "/Users/admin/
Developer/Collaboration/Twisted/twisted/internet/defer.py", line 304,
in _startRunCallbacks
2007-04-11 10:52:01-0600 [-] [caldav-8082] self._runCallbacks()
2007-04-11 10:52:01-0600 [-] [caldav-8082] File "/Users/admin/
Developer/Collaboration/Twisted/twisted/internet/defer.py", line 317,
in _runCallbacks
2007-04-11 10:52:01-0600 [-] [caldav-8082] self.result =
callback(self.result, *args, **kw)
2007-04-11 10:52:01-0600 [-] [caldav-8082] File "/Users/admin/
Developer/Collaboration/Twisted/twisted/internet/defer.py", line 601,
in gotResult
2007-04-11 10:52:01-0600 [-] [caldav-8082] _deferGenerator
(g, deferred)
2007-04-11 10:52:01-0600 [-] [caldav-8082] --- <exception caught
here> ---
2007-04-11 10:52:01-0600 [-] [caldav-8082] File "/Users/admin/
Developer/Collaboration/Twisted/twisted/internet/defer.py", line 576,
in _deferGenerator
2007-04-11 10:52:01-0600 [-] [caldav-8082] result = g.next()
2007-04-11 10:52:01-0600 [-] [caldav-8082] File "/Users/admin/
Developer/Collaboration/CalendarServer/twistedcaldav/method/
report.py", line 131, in http_REPORT
2007-04-11 10:52:01-0600 [-] [caldav-8082] yield d.getResult()
2007-04-11 10:52:01-0600 [-] [caldav-8082] File "/Users/admin/
Developer/Collaboration/Twisted/twisted/internet/defer.py", line 555,
in getResult
2007-04-11 10:52:01-0600 [-] [caldav-8082]
self.result.raiseException()
2007-04-11 10:52:01-0600 [-] [caldav-8082] File "/Users/admin/
Developer/Collaboration/Twisted/twisted/python/failure.py", line 303,
in raiseException
2007-04-11 10:52:01-0600 [-] [caldav-8082] raise self.type,
self.value, self.tb
2007-04-11 10:52:01-0600 [-] [caldav-8082]
exceptions.AssertionError: Calendar 2007-04-11T10%3A52%
3A00-0600_822729681.ics is missing from calendar collection
<CalDAVFile (calendar collection): /Users/admin/Developer/
Collaboration/CalendarServer/data/calendars/users/keating/calendar>
I poked around in the .db.sqlite file and see that the "NAME" of the
"RESOURCE" is the same as the "UID" and there is no linkage to the
actual filename ("2KXNZR~T.ICS" in this case). I'm guessing that the
"UID" field used to match the actual filename on the server OR I'm
doing something wrong naming the file. Should I submit a bug?
Thanks,
- Tyler
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-users/attachments/20070411/eab55b23/attachment-0001.html
More information about the calendarserver-users
mailing list