Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Request Tracker: Devel

Re: [rt-users] Further iCal/RSS experimenting/problems & some success

 

 

Request Tracker devel RSS feed   Index | Next | Previous | View Threaded


jpierce at cambridgeenergyalliance

Apr 8, 2009, 5:14 PM

Post #1 of 3 (1019 views)
Permalink
Re: [rt-users] Further iCal/RSS experimenting/problems & some success

While trying to debug another feed for Google Calendar,
I discovered that some iCal parsers are stricter than others.
Technically, every entry in iCal is supposed to be on its own
line, although lax parsers will fold lines as necessary.
Google Calendar, and probably others won't.

It seems the iCal emitted by RT (probably through the
Text::vFile dependency, but I've not tracked it down), is
inserting bogus newlines into the stream & splitting desc:
BEGIN:VCALENDAR
CALSCALE:gregorian
METHOD:publish
PRODID:-//CEA//
VERSION:2.0
X-WR-CALDESC;VALUE=TEXT:Due dates for RT tickets: Queue = 'SPAM' AND Status
= 'new'
X-WR-CALNAME;VALUE=TEXT:RT due dates
END:VCALENDAR

Instead of:
BEGIN:VCALENDAR
CALSCALE:gregorian
METHOD:publish
PRODID:-//CEA//
VERSION:2.0
X-WR-CALDESC;VALUE=TEXT:Due dates for RT tickets: Queue = 'SPAM' AND
Status = 'new'
X-WR-CALNAME;VALUE=TEXT:RT due dates
END:VCALENDAR

Even an empty stream from RT such as that above does not
check out in an online iCal validator.

There may be other issues as well...
http://www.google.com/support/forum/p/Calendar/thread?tid=5a31bba3997587ce
--
Cambridge Energy Alliance: Save money. Save the planet.
_______________________________________________
List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel


jpierce at cambridgeenergyalliance

Apr 8, 2009, 5:32 PM

Post #2 of 3 (944 views)
Permalink
Re: [rt-users] Further iCal/RSS experimenting/problems & some success [In reply to]

Actually, according to the RFC, the content is supposed to be folded :-/
Which occurs in Data::ICal::Property::_fold...

--
Cambridge Energy Alliance: Save money. Save the planet.
_______________________________________________
List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel


jpierce at cambridgeenergyalliance

Apr 8, 2009, 6:23 PM

Post #3 of 3 (950 views)
Permalink
Re: [rt-users] Further iCal/RSS experimenting/problems & some success [In reply to]

After patching Data::iCal (it was not folding per the RFC),
I've been able to intermittently-add RT iCal feeds to google
calendar, but never see any events. As per the previously
referenced thread, this is symptomatic of other issues with
the feed...

--- /usr/lib/perl5/site_perl/5.8.5/Data/ICal/Property.pm~
2007-01-12 13:21:32.000000000 -0500
+++ /usr/lib/perl5/site_perl/5.8.5/Data/ICal/Property.pm
2009-04-08 20:56:49.000000000 -0400
@@ -316,7 +316,7 @@
# }
} else {
while ( $string =~ /(.{76})/ ) {
- $string =~ s/(.{75})(.)/$1\n $2/;
+ $string =~ s/(.{64,74}\b)|(.{74})/$1\r\n\t/;
}
}
--
Cambridge Energy Alliance: Save money. Save the planet.
_______________________________________________
List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel

Request Tracker devel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.