6.0.0-beta6
4/10/26

[#12988] Same timezone exported multiple times in iCal format/subscription
Summary Same timezone exported multiple times in iCal format/subscription
Queue Horde Framework Packages
Queue Version Git master
Type Bug
State Resolved
Priority 1. Low
Owners jan (at) horde (dot) org
Requester sberthelot (at) emisfr (dot) com
Created 2/21/14 (4431 days ago)
Due
Updated 5/14/14 (4349 days ago)
Assigned 3/21/14 (4403 days ago)
Resolved 5/14/14 (4349 days ago)
Github Issue Link
Github Pull Request
Milestone Horde_Icalendar 2.0.8
Patch Yes

History
05/14/2014 03:20:38 PM Jan Schneider State ⇒ Resolved
Milestone ⇒ Horde_Icalendar 2.0.8
 
05/14/2014 03:20:21 PM Git Commit Comment #2 Reply to this comment
Changes have been made in Git (master):

commit d6fd510312c5ecb20eb760cfb3da93ea94cea6f1
Author: Jan Schneider <jan@horde.org>
Date:   Wed May 14 17:19:42 2014 +0200

     [jan] Export VTIMEZONE components only once per TZID (Bug #12988).

  framework/Icalendar/lib/Horde/Icalendar.php        |   10 ++-
  framework/Icalendar/package.xml                    |    4 +-
  .../Icalendar/test/Horde/Icalendar/ExportTest.php  |  105 
++++++++++++++++++++
  3 files changed, 116 insertions(+), 3 deletions(-)

http://github.com/horde/horde/commit/d6fd510312c5ecb20eb760cfb3da93ea94cea6f1
05/14/2014 03:20:13 PM Jan Schneider Version ⇒ Git master
Queue ⇒ Horde Framework Packages
 
03/21/2014 12:33:54 PM Jan Schneider State ⇒ Assigned
Assigned to Jan Schneider
 
02/21/2014 02:19:08 PM sberthelot (at) emisfr (dot) com Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Same timezone exported multiple times in iCal format/subscription
Queue ⇒ Kronolith
Milestone ⇒
Patch ⇒ Yes
New Attachment: horde-ical-uniquetimezone.diff Download
State ⇒ Unconfirmed
Reply to this comment
The VTIMEZONE block component with same TZID gets exported multiple 
times when getting a calendar using remote ICS URL and when it 
contains TZID dates.

To reproduce simply create multiple events with timezone data (same 
timezone) and use the ICS subscription URL to download the iCal file 
(via the rpc.php file). The VTIMEZONE block appears as many times as 
the number of events using a TZID.

Here is a proposed (maybe not correctly whitespace formatted) patch 
that does the same kind of comparison than the SabreDAV code path 
(Sabre/CalDAV/ICSExportPlugin.php), it simply check if there's already 
a Timezone with the same TZID and then prevents the new component to 
be added.

This fixes the problem at least for Outlook 2010 which keeps popping 
warnings about multiple defined timezones in shared calendars.

It seems rather strange to me that there are 2 ICS export paths in the 
code ; merging them somehow could avoid managing special behavior 
multiple times (like ensuring timezone is exported only once per TZID).

Saved Queries