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
Hi Tyler, --On April 11, 2007 11:24:35 AM -0600 Tyler Keating <tylerkeating@mac.com> 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? 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
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 <tylerkeating@mac.com> 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
Hello, I am running Calendar Server on one of the Leopard Seeds and had some questions about shared calendars. How do I create a shared/group calendar? How do I go about editing ACL's so users can edit the shared calendar? Thanks, Paul + + + + + + + + + + + + + + + + + + + + + + + p a u l y u e r g e n s + w e b m a s t e r + u c l a p s y c h o l o g y + yuergens@psych.ucla.edu +
Yeah, it sound like something isn't getting quoted/unquoted properly somewhere. Can you file a ticket? Thanks, -wsv On Apr 11, 2007, at 10:58 AM, Tyler Keating wrote:
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?
— Wilfredo Sánchez - wsanchez@wsanchez.net
Hi Wilfredo, I've submitted two tickets. http://trac.macosforge.org/projects/calendarserver/ticket/136 - Can't use non-default directory service http://trac.macosforge.org/projects/calendarserver/ticket/137 - Unable to REPORT on ICS filenames with a Colon I didn't assign milestones or owners, but I see in the list that they were automatically assigned to you. So I guess you can edit it as you like. Thanks, - Tyler On 12-Apr-07, at 5:58 PM, Wilfredo Sánchez Vega wrote:
Yeah, it sound like something isn't getting quoted/unquoted properly somewhere. Can you file a ticket?
Thanks, -wsv
On Apr 11, 2007, at 10:58 AM, Tyler Keating wrote:
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?
— Wilfredo Sánchez - wsanchez@wsanchez.net
participants (4)
-
Cyrus Daboo
-
Paul Yuergens
-
Tyler Keating
-
Wilfredo Sánchez Vega