6.0.0-beta1
7/7/25

[#12343] ActiveSync crashes if email VEVENT attachment contains invalid DTSTAMP
Summary ActiveSync crashes if email VEVENT attachment contains invalid DTSTAMP
Queue Synchronization
Queue Version Git master
Type Bug
State Resolved
Priority 1. Low
Owners jan (at) horde (dot) org, mrubinsk (at) horde (dot) org
Requester jeisecke (at) saltation (dot) de
Created 06/12/2013 (4408 days ago)
Due
Updated 06/17/2013 (4403 days ago)
Assigned 06/12/2013 (4408 days ago)
Resolved 06/17/2013 (4403 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
06/17/2013 07:17:02 PM Michael Rubinsky Comment #8
State ⇒ Resolved
Reply to this comment
Going to assume this is fixed...
06/12/2013 01:19:13 PM Michael Rubinsky Comment #7
State ⇒ Feedback
Reply to this comment
Does this fix?
06/12/2013 01:17:46 PM Git Commit Comment #6 Reply to this comment
Changes have been made in Git (master):

commit b3ba127ad527a59177777adc62387bbece045a93
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date:   Wed Jun 12 09:14:57 2013 -0400

     Bug: 12343 Fix property names.

  .../Horde/ActiveSync/Message/MeetingRequest.php    |    6 +++---
  1 files changed, 3 insertions(+), 3 deletions(-)

http://git.horde.org/horde-git/-/commit/b3ba127ad527a59177777adc62387bbece045a93
06/12/2013 11:38:19 AM Jan Schneider Comment #5
Assigned to Jan Schneider
Assigned to Michael Rubinsky
State ⇒ Assigned
Reply to this comment
There is still something looking suspiciously wrong there. DTSTART is 
assigned to $this->starttime, but later in the code $this->start is 
referenced. I don't see *that* being assigned anywhere though.
06/12/2013 11:36:40 AM Git Commit Comment #4 Reply to this comment
Changes have been made in Git (master):

commit dbc058ba962d5fb606acd56fec2846a46fd8fee1
Author: Jan Schneider <jan@horde.org>
Date:   Wed Jun 12 13:28:31 2013 +0200

     Catch more exeptions (Bug #12343).

  .../Horde/ActiveSync/Message/MeetingRequest.php    |    9 ++++-----
  1 files changed, 4 insertions(+), 5 deletions(-)

http://git.horde.org/horde-git/-/commit/dbc058ba962d5fb606acd56fec2846a46fd8fee1
06/12/2013 10:52:20 AM jeisecke (at) saltation (dot) de Comment #3 Reply to this comment
On the phone or in Horde? If in Horde, which exception (including backtrace)?
In Horde.

The mail was in the sent folder.

Unfortunately I've lost the backtrace. The exception was in 
Horde/Date.php (Horde_Date_Exception) called from 
./ActiveSync/Message/MeetingRequest.php in function _vEvent:
new Horde_Date($vevent->getAttribute('DTSTAMP'))

Seems the like the catch introduced in 
18a350af03f5fa71189958716fda9bf5def3fe40 does not catch 
Horde_Date_Exception.

06/12/2013 10:15:52 AM Jan Schneider Comment #2
State ⇒ Feedback
Reply to this comment
However any further email sync via ActiveSync will crash because an 
exception is thrown while parsing that DTSTAMP value of that 
attachment.
On the phone or in Horde? If in Horde, which exception (including backtrace)?
06/12/2013 09:00:57 AM jeisecke (at) saltation (dot) de Comment #1
State ⇒ Unconfirmed
Patch ⇒ No
Milestone ⇒
Queue ⇒ Synchronization
Summary ⇒ ActiveSync crashes if email VEVENT attachment contains invalid DTSTAMP
Type ⇒ Bug
Priority ⇒ 1. Low
Reply to this comment
The following email was created by the Nokia N9 calendar when adding 
participants to an event.

For some reason the DTSTAMP element of the VEVENT is garbage.

However any further email sync via ActiveSync will crash because an 
exception is thrown while parsing that DTSTAMP value of that attachment.

Removing that email from the sent folder obviously helps.

----

Date: Tue, 11 Jun 2013 15:59:40 +0000
To: xxx@horde.local
From: yyy@horde.local
Subject: Test Event
Content-Type: multipart/alternative;
  boundary="qmf:252850498hCcmJvBo56zCqaN12pwXSg=="
MIME-Version: 1.0

This message is in MIME format.

--qmf:252850498hCcmJvBo56zCqaN12pwXSg==
Content-Type: text/plain; charset=utf-8


--qmf:252850498hCcmJvBo56zCqaN12pwXSg==
Content-Type: text/calendar; charset=utf-8; method=REQUEST

BEGIN:VCALENDAR
PRODID:-//K Desktop Environment//NONSGML libkcal 4.3//EN
VERSION:2.0
METHOD:REQUEST
BEGIN:VTIMEZONE
TZID:Europe/Berlin
BEGIN:DAYLIGHT
TZNAME:CEST
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
DTSTART:19810329T020000
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=3
END:DAYLIGHT
BEGIN:STANDARD
TZNAME:CET
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
DTSTART:19961027T030000
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
CREATED:20130611T155940Z
ORGANIZER:MAILTO:xxx@horde.local
ATTENDEE;CN="yyy@horde.local";RSVP=TRUE;
  PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT;X-UID=13184680:mailto:
  yyy@horde.local
DTSTAMP:-4713010T000000
UID:b995e351-9256-4586-a894-a7a2f22d38fb
SUMMARY:Test Event
STATUS:CONFIRMED
DTSTART;TZID=Europe/Berlin:20130611T180000
DTEND;TZID=Europe/Berlin:20130611T190000
TRANSP:OPAQUE
BEGIN:VALARM
ACTION:AUDIO
TRIGGER;VALUE=DURATION:-PT15M
REPEAT:5
DURATION:PT5M
X-KDE-KCALCORE-ENABLED:TRUE
END:VALARM
END:VEVENT
END:VCALENDAR

--qmf:252850498hCcmJvBo56zCqaN12pwXSg==--


Saved Queries