Bug 137369 - Add support for URLs in events and TODOs, as given in the vCal specification
Summary: Add support for URLs in events and TODOs, as given in the vCal specification
Status: REPORTED
Alias: None
Product: korganizer
Classification: Applications
Component: todoview (show other bugs)
Version: unspecified
Platform: Debian stable Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-15 00:40 UTC by Geoff Oakham
Modified: 2009-10-02 00:38 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Geoff Oakham 2006-11-15 00:40:55 UTC
Version:            (using KDE KDE 3.5.3KDE 1.2)
Installed from:    Unlisted Binary PackageDebian stable Packages
OS:                Linux

The vCal specification allows events and TODO items to have URLs associated with them.  MacOSX's iCal is an example of a program currently supporting them.

That's it.. pretty simple. (I hope!)
Comment 1 Geoff Oakham 2006-11-15 00:43:03 UTC
Here's an example of a TODO with a URL (as generated by MacOSX iCal):

BEGIN:VTODO
DTSTAMP:20061019T162438Z
UID:D08F9E6F-7F6B-4915-97FE-F7BD43C47D76
SEQUENCE:6
URL;VALUE=URI:http://www.utstat.toronto.edu/philip/courses/sta257/sumhw3.pdf
STATUS:COMPLETED
DTSTART;TZID=Canada/Eastern:20061004T000000
SUMMARY:STA257 problem set #3
COMPLETED:20061019T040000Z
DUE;VALUE=DATE:20061018
CATEGORIES:assignments
END:VTODO
Comment 2 Geoff Oakham 2006-11-15 01:04:58 UTC
Clarification: korganizer supports "attachments" instead of URLs.  For example, MacOSX produces this:

URL;VALUE=URI:http://www.math.toronto.edu/vtk/247/hw4.html

While korganizer produces this:

ATTACH:http://www.math.toronto.edu/vtk/247/hw4.html

I don't know which is correct, but it would be nice if Korganizer could gracefully import either format.
Comment 3 Reinhold Kainhofer 2006-11-15 01:14:51 UTC
Am Mit Nov 15 2006 schrieb Geoff Oakham:
> The vCal specification allows events and TODO items to have URLs associated
> with them.  MacOSX's iCal is an example of a program currently supporting
> them.
>
> That's it.. pretty simple. (I hope!)


You are absolutely right, it's pretty simple. Have you ever tried simply 
pasting that URL into the "add attachment" dialog in KOrganizer's event/todo 
editor? ;-)

Cheers,
Reinhold
Comment 4 Geoff Oakham 2006-11-15 01:20:22 UTC
Actually, I was talking about the vCal file itself.  I'm trying to import data from another application, and URLs is a tripping block I've encountered.

Basically, there appear to be two standards for vCal: "URL" and "ATTACH".  I know it's not korganizer's fault, but this isn't he first time we've had multiple standards for things, right?
Comment 5 Reinhold Kainhofer 2006-11-15 01:32:35 UTC
Am Mit Nov 15 2006 schrieb Geoff Oakham:
> Clarification: korganizer supports "attachments" instead of
> URLs.  For example, MacOSX produces this:
>
> URL;VALUE=URI:http://www.math.toronto.edu/vtk/247/hw4.html
>
> While korganizer produces this:
>
> ATTACH:http://www.math.toronto.edu/vtk/247/hw4.html
>
> I don't know which is correct, but it would be nice if Korganizer could
> gracefully import either format.


The iCalendar spec (RFC 2445) says for the URL property:
   Description: This property may be used in a calendar component to
   convey a location where a more dynamic rendition of the calendar
   information associated with the calendar component can be found. This
   memo does not attempt to standardize the form of the URI, nor the
   format of the resource pointed to by the property value. 

On the other hand, it says about the ATTACH property:
   Purpose: The property provides the capability to associate a document
   object with a calendar component.
   Value Type: The default value type for this property is URI. The
   value type can also be set to BINARY to indicate inline binary
   encoded content information.


So, the URL is only for an alternative representation of the event itself. To 
append URLs with additional information or related documents, URL is the 
wrong property, and ATTACH is the correct one. As KOrganizer does not allow 
alternative representations of the event, we won't support the URL property. 

Cheers,
Reinhold

BTW: I've seen several calendars generated by Apple's iCal, that use 
   ATTACH;VALUE=URI:http://......
Is there any difference in iCal how to create ATTACH and URL properties. Is it 
possible to generate both? Or has the behavior changed somewhen?
Comment 6 Geoff Oakham 2006-11-15 01:48:54 UTC
Yuck.  I've tried to export events in several different ways, but it keeps coming up with URLs instead of ATTACH.  The only thing I haven't tried is publishing over the 'net.  Do you know where you got those events?  My version of iCal is 2.0.4 build 1055.

I trust your interpretation of the spec.. but it's sad when you can't transfer data between two applications that are supposedly standards-compliant.  That said, it's mostly working, and I'm happy about that.

Thanks,

Geoff
Comment 7 Reinhold Kainhofer 2006-11-15 02:23:40 UTC
Am Mit Nov 15 2006 schrieb Geoff Oakham:
> ------- Additional Comments From oakhamg users sourceforge net 
Comment 8 Rigo Wenning 2009-10-02 00:38:06 UTC
> You are absolutely right, it's pretty simple. Have you ever tried simply 
> pasting that URL into the "add attachment" dialog in KOrganizer's event/todo 
> editor? ;-)

Actually nice, but korganizer does not display the attached URI in the "show event" but only if one opens the edit dialog. This is a regression as it worked before. (kontact 4.3.1 used here on kubuntu karmic)