Error 403 from Google Calendar? Upgrade to the new Google Calendar support. See here for details. close
Welcome, Guest
Please Login or Register.    Lost Password?

Line ending handling bug
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: Line ending handling bug
#4339
Line ending handling bug 7 Years, 2 Months ago  
I found what I believe to be a bug or at least an instance of non-compliance with the icalendar specification. I'm using the latest full version. I'm doing a network calendar (using WebDAV).

rfc2445 in section 4.1 defines a line ending (CRLF) as a carriage return and a line feed:
Code:


  CR = %x0D
  ; carriage return

  LF = %x0A
  ; line feed

  CRLF       = CR LF
  ; Internet standard newline



It appears that when I save an event or todo in rainlendar, it leaves the CRLF on the BEGIN:* and END:* lines but removes the carriage return character from all other lines.

This causes icalendar files created with Rainlendar to fail when they are accessed by the OSX ical application. It does not fail when I use Mozilla Sunbird.

Workaround: It appears that Mozilla Sunbird will parse rainlendar created ics file and will reformat them properly if you edit an event in Sunbird.

If necessary, I can supply example ics files to demonstrate. Let me know if you need this.
stand
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#4391
Re:Line ending handling bug 7 Years, 2 Months ago  
Confirmed. Probably got broken when I upgraded one of the the 3rd party libraries. I'll fix it.
Rainy
Moderator
Posts: 6045
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#4727
Re:Line ending handling bug 7 Years, 1 Month ago  
Hi Rainy!

Sorry to bring this up again, but can you tell me when you planning to submit a fixed version?
I'm using Rainlendar to manage events with my ical-mac-collegue and can't use the update 2.2 now. The question for me is if I should downgrade or just a wait a few days...

tia.
Joergen
joepi
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#4737
Re:Line ending handling bug 7 Years, 1 Month ago  
The problem was fixed already in build 47.
Rainy
Moderator
Posts: 6045
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#4740
Re:Line ending handling bug 7 Years, 1 Month ago  
Joergen,

As an interim measure, you might try what I've been doing. I am working around the problem by just running a script on the ics file to set the line endings. I run the attached perl script, passing in the ics files as a cron job. It works fine.

StanD.
stand
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#4741
Re:Line ending handling bug 7 Years, 1 Month ago  
oops, it wouldn't let me attach a perl script. I've changed it to a text file.
File Attachment:
File Name: fixlineendings.txt
File Size: 892
stand
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 12
get the latest posts directly to your desktop