Hello,

On 11-Apr-07, at 11:30 AM, Cyrus Daboo wrote:

Hi Tyler,

--On April 11, 2007 11:24:35 AM -0600 Tyler Keating <[EMAIL PROTECTED]> wrote:

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?


What OS are your running the server on? Do you have the latest top- of-trunk server code?


Mac OS 10.4 Server. I re-checked out the code today before sending an email just to be sure.

As far as I am aware the server does not rewrite the file name - it uses the last segment of the URI path as the name of the file. So I am not sure why you are seeing that truncated/changed in your file browser.

--
Cyrus Daboo

OH!! It just hit me, for viewing the files I'm connected to the server through the Finder using Samba and these filenames have a colon in them. A quick check on the command line verifies that the filename is indeed how you say it should be. Sorry for the scare, I confused myself by accident.

However, the REPORT still fails with the above error although I have no problem seeing the collection and getting files through the browser (both GETs).

Since the filename is 007-04-11T10:52:00-0600_822729681.ics and the error refers to 2007-04-11T10%3A52%3A00-0600_822729681.ics, is there an escaping issue?

Thanks for the quick response,
- Tyler
_______________________________________________
calendarserver-users mailing list
calendarserver-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/calendarserver-users

Reply via email to