J and Beyond 2013 | An International Joomla! Conference - May 31st - 2nd, 2013, Noordwijkerhout, The Netherlands
It is currently Mon May 20, 2013 7:39 am

SOLVED - Bug report: Importing ical RRULE with exception

We are looking for developers, forum moderators and translators for this project.

If you would like to help out then please add a message in this forum.

SOLVED - Bug report: Importing ical RRULE with exception

Postby arthurbaars » Mon Apr 02, 2012 5:12 pm

Importing the ical file below in JEvents version 2.1.12, gives strange results. Moreover the frontend and backend imports behave slightly differently. The ical file consists of a recurring event followed by an exception to the recurrence pattern.

Frontend: Nothing gets imported into the calendar.
Backend: The recurring event gets imported into the calendar, but the exception does not.

Changing the order of the recurring event and the exception does yield the expected result (recurring event with simple exception at 2007/12/24) for both frontend and backend import.

Code: Select all
BEGIN:VCALENDAR
PRODID:-//Mozilla.org/NONSGML Mozilla Calendar V1.1//EN
VERSION:2.0
METHOD:PUBLISH
BEGIN:VTIMEZONE
TZID:Europe/Amsterdam
X-LIC-LOCATION:Europe/Amsterdam
BEGIN:DAYLIGHT
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
TZNAME:CEST
DTSTART:19700329T020000
RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=-1SU;BYMONTH=3
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
TZNAME:CET
DTSTART:19701025T030000
RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=-1SU;BYMONTH=10
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
CREATED:20070901T091003Z
LAST-MODIFIED:20120302T112410Z
DTSTAMP:20120302T112410Z
UID:bd047bee-c3f5-4f3d-aaad-0fc774c8332d
SUMMARY:Some Description 1
RRULE:FREQ=WEEKLY;INTERVAL=1;BYDAY=MO,TU,TH
DTSTART;TZID=Europe/Amsterdam:20070917T150000
DTEND;TZID=Europe/Amsterdam:20070917T180000
X-MOZ-GENERATION:104
END:VEVENT
BEGIN:VEVENT
CREATED:20071106T085512Z
LAST-MODIFIED:20120302T112410Z
DTSTAMP:20120302T112410Z
UID:bd047bee-c3f5-4f3d-aaad-0fc774c8332d
SUMMARY:Some Description 2
RECURRENCE-ID;TZID=Europe/Amsterdam:20071224T150000
DTSTART;TZID=Europe/Amsterdam:20071224T074500
DTEND;TZID=Europe/Amsterdam:20071224T180000
END:VEVENT
END:VCALENDAR
arthurbaars
Posts: 9
Joined: Mon Apr 02, 2012 4:08 pm

Re: Bug report: Importing ical RRULE with exception

Postby carcam » Tue Apr 03, 2012 6:05 am

Please take a look at my reply on the other post:

viewtopic.php?f=18&t=13596&p=68212#p68212

By the way, which version of Joomla! are you using?
carcam
Contributor
Posts: 3391
Joined: Wed Aug 06, 2008 7:50 pm
Location: Córdoba

Re: Bug report: Importing ical RRULE with exception

Postby arthurbaars » Tue Apr 03, 2012 7:56 am

This problem also persists after upgrading to JEvents 2.1.14. My Joomla version is 2.5.4 (since yesterday)
arthurbaars
Posts: 9
Joined: Mon Apr 02, 2012 4:08 pm

Re: Bug report: Importing ical RRULE with exception

Postby Geraint » Tue Apr 03, 2012 9:34 am

I'm not sure when this problem started. Until recently the code was correctly matching the recurrence-id that needed changing with the correct set of repetitions - it could be because Mozilla outputs the event and recurrence in a different order to google and other online calendar.

Anyhow if you unzip and upload this file to components/com_jevents/libraries/iCalICSFile.php the problem will be resolved/

Thanks

Geraint
Attachments
iCalICSFile.php.zip
(4.68 KiB) Downloaded 50 times
------------
JEvents club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits.

Join the JEvents club today!
User avatar
Geraint
Posts: 30519
Joined: Fri Feb 15, 2008 6:14 pm

Re: Bug report: Importing ical RRULE with exception

Postby arthurbaars » Tue Apr 03, 2012 9:50 am

Backend import works correctly, in both orders.

Frontend import still does not work. Are you using different code for the frontend imports?
arthurbaars
Posts: 9
Joined: Mon Apr 02, 2012 4:08 pm

Re: Bug report: Importing ical RRULE with exception

Postby Geraint » Tue Apr 03, 2012 10:16 am

No they use the same library code - can you describe what you are doing in the frontend exactly and I'll try to recreate the issue
------------
JEvents club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits.

Join the JEvents club today!
User avatar
Geraint
Posts: 30519
Joined: Fri Feb 15, 2008 6:14 pm

Re: Bug report: Importing ical RRULE with exception

Postby arthurbaars » Tue Apr 03, 2012 10:31 am

  • In the backend: create a new empty (native) calendar
  • Turn on "Allow Frontend Import of Events" in JEvents Config
  • Login to frontend, and go to calendar (month view)
  • Click on "Import Ical events"
  • Select ical file, choose the empty calendar, and upload
  • Reload calendar page

After the last step the calendar should display events for all Mondays, Tuesdays, and Thursdays
arthurbaars
Posts: 9
Joined: Mon Apr 02, 2012 4:08 pm

Re: Bug report: Importing ical RRULE with exception

Postby Geraint » Tue Apr 03, 2012 1:42 pm

This was a slightly different issue to do with the the default access level of imported events.

This new file resolves this
Attachments
iCalICSFile.php.zip
(4.7 KiB) Downloaded 51 times
------------
JEvents club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits.

Join the JEvents club today!
User avatar
Geraint
Posts: 30519
Joined: Fri Feb 15, 2008 6:14 pm

Re: Bug report: Importing ical RRULE with exception

Postby arthurbaars » Tue Apr 03, 2012 3:04 pm

Thanks a lot! Now it seems to work fine.
arthurbaars
Posts: 9
Joined: Mon Apr 02, 2012 4:08 pm


Return to Contribute to JEvents

Who is online

Users browsing this forum: No registered users

Main Menu

User Menu

Hosted By


Who is online

In total there are 0 users online :: 0 registered and 0 hidden (based on users active over the past 5 minutes)
Most users ever online was 94 on Tue Sep 01, 2009 12:33 am

Users browsing this forum: No registered users

Login Form