Attempting to import by URL the following ics data by calling an endpoint on an API I'm working on. Google does import the events at the required time and date, but their title is busy and status Private even though the events contain CLASS:PUBLIC. Using icalendar ruby gem to build the ical data.
Also, the API responds with Content-Type: text/calendar header. Trying to import the data below through a file format works fine. The problem is in the URL import. Did not try Outlook/iCalendar. No solutions from other stackoverflow threads worked so far.
Any thoughts as to what might be the problem?
BEGIN:VCALENDAR
VERSION:2.0
PRODID:icalendar-ruby
CALSCALE:GREGORIAN
METHOD:PUBLISH
BEGIN:VEVENT
DTSTAMP:20191120T143449Z
UID:4a22a9b7-8b20-487b-a4fb-bc0b6ff90adf
DTSTART:20191121T070000
DTEND:20191121T130000
CLASS:PUBLIC
SUMMARY:7a Driver
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20191120T143449Z
UID:5eda6340-bfec-417e-869a-d5f1af2ba433
DTSTART:20191122T070000
DTEND:20191122T130000
CLASS:PUBLIC
SUMMARY:7a Driver
END:VEVENT
END:VCALENDAR
This is a problem with the icalendar ruby gem.
I've created a sample ICS file like this:
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:PUBLISH
X-WR-CALNAME:email#domain.com
X-WR-TIMEZONE:Europe/Madrid
BEGIN:VEVENT
DTSTART:20191120T160000Z
DTEND:20191120T170000Z
DTSTAMP:20191120T162746Z
UID:<id>#domain.com
CLASS:PUBLIC
CREATED:20191120T162722Z
DESCRIPTION:busy
LAST-MODIFIED:20191120T162722Z
LOCATION:
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:event 1
TRANSP:OPAQUE
END:VEVENT
BEGIN:VEVENT
DTSTART:20191120T173000Z
DTEND:20191120T183000Z
DTSTAMP:20191120T162746Z
UID:<another-id>#domain.com
CLASS:PRIVATE
CREATED:20191120T162733Z
DESCRIPTION:private
LAST-MODIFIED:20191120T162733Z
LOCATION:
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:event 2
TRANSP:TRANSPARENT
END:VEVENT
END:VCALENDAR
Events
Event 1
CLASS:PUBLIC
TRANSP:OPAQUE
Meaning that it's a public event and I will be considered "Busy" during it.
Event 2
CLASS:PRIVATE
TRANSP:TRANSPARENT
Meaning that it's a private event and I will be considered "Free" during it.
Solution
I'd recommend you head to the library's Issue Tracker and file a bug report there.
Related
I am trying to create calendar events in outlook from .ics received in mail. This is the content of the ics file.
BEGIN:VCALENDAR
VERSION:2.0
METHOD:REQUEST
CALSCALE:GREGORIAN
BEGIN:VEVENT
SUMMARY:Demo descr
DTSTART:20220924T103000Z
DTEND:20220924T113000Z
ORGANIZER;CN=xyz#abc.com:mailto:xyz#abc.com
UID:4763547133112123311211d1121121s11e133111112112112
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN=xyz#outlook.com;X-NUM-GUESTS=0:mailto:xyz#outlook.com
DESCRIPTION;LANGUAGE=en-US:check description
LOCATION:somelink
TRANSP:OPAQUE
STATUS:CONFIRMED
SEQUENCE:2
END:VEVENT
END:VCALENDAR
Everything is synced properly except the description part. However if i add the ics file directly in the calendar by importing, the description is reflected.
Can anyone please help me here?
.ics and ical events are not a "forest trip" (as we say in french).
Below a working event -> a created event.
BEGIN:VCALENDAR
PRODID:-//mls//calendar//FR
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:PUBLISH
BEGIN:VEVENT
DTSTART:20220505T120000Z
DTEND:20220505T124000Z
DTSTAMP:20220503T210000Z
UID:uuidXYZ
ORGANIZER;CN=me#example.com:MAILTO:me#example.com
DESCRIPTION:xxxxxxxxxxx
LOCATION:somewhere
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:something
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR
It works in Mail.app (os x) and GMail.
For example, I see this and this is perfect.
I'm also able to add this event to my calendar
However, I'm unable to cancel this event! Argh!
Below my cancelled event:
BEGIN:VCALENDAR
PRODID:-//mls//calendar//FR
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:CANCEL
BEGIN:VEVENT
DTSTART:20220505T120000Z
DTEND:20220505T124000Z
DTSTAMP:20220503T210000Z
UID:uuidXYZ
ORGANIZER;CN=me#example.com:MAILTO:me#example.com
DESCRIPTION:xxxxxxxxxxx
LOCATION:somewhere
SEQUENCE:1
STATUS:CANCELLED
SUMMARY:something
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR
Note that METHOD, SEQUENCE and STATUS have changed!
If I see this in Gmail (image below), the event DOESN'T disappear from my calendar... :-/
Do you have any idea why it's not working?
It's also not working in mail.app (OS X).
Thanks a lot!
When I create an iCalendar on Outlook, I want to delete it on Outlook with importing the ics-cancel-file,but it gives me the message "The events could't be imported. Please try again later.Error message".
The event ics file:
BEGIN:VCALENDAR
PRODID:-//Microsoft Corporation//Outlook 15.0 MIMEDIR//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:PUBLISH
BEGIN:VEVENT
DTSTAMP:20160504T072433Z
DTSTART;VALUE=DATE;VALUE=DATE:20160506
SUMMARY:BirthDay
UID:20160504T072432Z-1#fe80:0:0:0:a2d3:c1ff:fe34:bacf%2
END:VEVENT
END:VCALENDAR
The ics-cancel-file:
BEGIN:VCALENDAR
PRODID:-//Microsoft Corporation//Outlook 15.0 MIMEDIR//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:CANCEL
BEGIN:VEVENT
DTSTAMP:20160504T072433Z
DTSTART;VALUE=DATE;VALUE=DATE:20160506
SUMMARY:BirthDay
UID:20160504T072432Z-1#fe80:0:0:0:a2d3:c1ff:fe34:bacf%2
STATUS:CANCELLED
END:VEVENT
END:VCALENDAR
What can I fix it that I can delete the event? What's wrong with this ics file?
Adding the 2nd file just change the Event's STATUS, which defines the overall status or confirmation for the calendar component (https://www.rfc-editor.org/rfc/rfc5545#section-3.8.1.11)
The only way there is for deleting a calendar object if by a DELETE Request (http://www.webdav.org/specs/rfc2518.html#METHOD_DELETE). So there isn't something wrong with the .ics file.
My Request is :
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Apple Inc.//iCal 5.0.2//EN
BEGIN:VTIMEZONE
TZID:UTC
BEGIN:STANDARD
DTSTART;VALUE=DATE:20140101
TZNAME:UTC
TZOFFSETFROM:+0000
TZOFFSETTO:+0000
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
ATTENDEE;CN=Isha;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED:MAILTO:iagarwal#sch
eduleonce.com
DESCRIPTION:meeting details0
DTEND;TZID=UTC:20150601T061500
DTSTAMP:20150520T073543Z
DTSTART;TZID=UTC:20150601T051500
SEQUENCE:0
STATUS:Confirmed
SUMMARY:meeting 10
TRANSP:Opaque
UID:6BBD518F-B0E3-4157-A105-A7ECEB82D73E
END:VEVENT
BEGIN:VEVENT
ATTENDEE;CN=Isha;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED:MAILTO:iagarwal#sch
eduleonce.com
DESCRIPTION:meeting details1
DTEND;TZID=UTC:20150601T061500
DTSTAMP:20150520T073543Z
DTSTART;TZID=UTC:20150601T051500
SEQUENCE:0
STATUS:Confirmed
SUMMARY:meeting 11
TRANSP:Opaque
UID:6BBD518F-B0E3-4157-A105-A7ECEB82D73F
END:VEVENT
END:VCALENDAR
URL : https://p22-caldav.icloud.com/XXX/calendars/home
Method: POST
Depth:1
The web response does not return any exception. In web response I get http status code as "OK" but the event is not created on my icloud calendar.
I refered to enter link description here . Search for Example: Calendar Resource Bulk Create
Your POST request is on the calendar home which is the parent collection of actual calendars. I think you want to do the POST on one of your actual calendar.
https://p22-caldav.icloud.com/XXX/calendars/home/xxxx/
You have events with ATTENDEE property but no ORGANIZER property.
I'm trying to create, change and cancel a published event in the Lotus Notes calendar. I've created ics files that create, change, and cancel events in Outlook successfully. However, that ics for the Cancel Event bombs in Lotus Notes. Secondly, I pulled some sample ics files from rfc 5546. I picked the simplest possible. I used the iCalendar examples from 4.1.1, 4.1.2, and 4.1.3 from the rfc. Once again, 4.1.3's Cancel Event ics file fails. I looked at rfc 2446, and the examples look identical. Included below are the ics files I've tried with Lotus Notes. Does anyone know how to cancel an event with an ics file in the Lotus Notes calendar?
Here are my ics files:
examples from RFC 2446/5546:
create.ics
BEGIN:VCALENDAR
METHOD:PUBLISH
PRODID:-//Example/ExampleCalendarClient//EN
VERSION:2.0
BEGIN:VEVENT
ORGANIZER:mailto:alex.m#foo.com
DTSTART:20140709T140000Z
DTEND:120140709T160000Z
DTSTAMP:120140605T130000Z
SUMMARY: Test Class 1
UID:0981234-1234234-23#example.com
END:VEVENT
END:VCALENDAR
update.ics
BEGIN:VCALENDAR
METHOD:PUBLISH
VERSION:2.0
PRODID:-//Example/ExampleCalendarClient//EN
BEGIN:VEVENT
ORGANIZER:mailto:alex.m#foo.com
DTSTAMP:120140605T150000Z
DTSTART:20140709T150000Z
DTEND:120140709T170000Z
SEQUENCE:1
UID:0981234-1234234-23#example.com
SUMMARY: Test Class 1
END:VEVENT
END:VCALENDAR
delete.ics
BEGIN:VCALENDAR
METHOD:CANCEL
VERSION:2.0
PRODID:-//Example/ExampleCalendarClient//EN
BEGIN:VEVENT
ORGANIZER:mailto:alex.m#foo.com
COMMENT: Class Cancelled
SEQUENCE:2
UID:0981234-1234234-23#example.com
DTSTAMP:120140605T160000Z
END:VEVENT
END:VCALENDAR
examples that work with Outlook 2013
create.ics
BEGIN:VCALENDAR
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:PUBLISH
BEGIN:VEVENT
UID:FooBar Software-566
DTSTART:20140509T140000Z
DTEND:20140509T160000Z
DESCRIPTION:Course: Alex Test Course 19 (classroom)\nFriday, May 9: Alex Test Classroom 2, Company HQ, 9:00 AM - 11:00 AM; Time Zone: (GMT-06:00) Central Time (US & Canada)
LOCATION:Alex Test Classroom 2 at Company HQ
SUMMARY:Alex Test Course 19 (classroom)
SEQUENCE:0
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR
update.ics
BEGIN:VCALENDAR
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
UID:FooBar Software-566
DTSTART:20140509T150000Z
DTEND:20140509T170000Z
ORGANIZER:support#ziiva.com
DESCRIPTION:Course: Alex Test Course 19 (classroom)\nFriday, May 9: Alex Test Classroom 2, Company HQ, 10:00 AM - 12:00 PM; Time Zone: (GMT-06:00) Central Time (US & Canada)
LOCATION:Alex Test Classroom 2 at Company HQ
SUMMARY:Alex Test Course 19 (classroom)
SEQUENCE:1
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR
delete.ics
BEGIN:VCALENDAR
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:CANCEL
BEGIN:VEVENT
UID:FooBar Software-566
DESCRIPTION:Course: Alex Test Course 19 (classroom)
LOCATION:Alex Test Classroom 2 at Company HQ
SUMMARY:Alex Test Course 19 (classroom)
STATUS:CANCELLED
SEQUENCE:2
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR