6.0.0-beta1
7/3/25

[#14076] Date parsing causes invites not to be displayed (exception is being ignored)
Summary Date parsing causes invites not to be displayed (exception is being ignored)
Queue IMP
Queue Version 6.2.9
Type Bug
State Resolved
Priority 1. Low
Owners mrubinsk (at) horde (dot) org
Requester jsegovia.spamina (at) gmail (dot) com
Created 08/04/2015 (3621 days ago)
Due
Updated 08/09/2015 (3616 days ago)
Assigned
Resolved 08/09/2015 (3616 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
08/09/2015 01:54:50 AM Michael Rubinsky Assigned to Michael Rubinsky
 
08/09/2015 01:54:29 AM Michael Rubinsky Comment #4
State ⇒ Resolved
Priority ⇒ 1. Low
Reply to this comment
IMP 6.2.11
08/09/2015 01:53:25 AM Git Commit Comment #3 Reply to this comment
Changes have been made in Git (FRAMEWORK_5_2):

commit 4b6be40f436564618bb4b645d623b3dda6e3f4d4
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date:   Sat Aug 8 21:45:25 2015 -0400

     Don't use localized date string to instantiate Horde_Date object.

     Fixes Bug: 14076

  imp/lib/Mime/Viewer/Itip.php |    3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)

http://github.com/horde/horde/commit/4b6be40f436564618bb4b645d623b3dda6e3f4d4
08/09/2015 01:47:58 AM Git Commit Comment #2 Reply to this comment
Changes have been made in Git (master):

commit 9bcc097ddcd535213c94b5456af6b14bd49b567b
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date:   Sat Aug 8 21:45:25 2015 -0400

     Don't use localized date string to instantiate Horde_Date object.

     Fixes Bug: 14076

  imp/lib/Mime/Viewer/Itip.php |    3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)

http://github.com/horde/horde/commit/9bcc097ddcd535213c94b5456af6b14bd49b567b
08/04/2015 12:55:22 PM jsegovia (dot) spamina (at) gmail (dot) com Comment #1
Priority ⇒ 2. Medium
New Attachment: Weekly catch up.eml Download
Patch ⇒ No
Milestone ⇒
Summary ⇒ Date parsing causes invites not to be displayed (exception is being ignored)
Type ⇒ Bug
State ⇒ Unconfirmed
Queue ⇒ IMP
Reply to this comment
We are facing an localization-related issue with meeting invites and Horde
(webmail). The invites are processed correctly by Thunderbird, iPhones and
other email clients.

Attached to this email is an example invite, which originates from an MS
Exchange 2010.

The invite is a "multipart/alternate" message. Horde's webmail lists the
three MIME components, but when one tries to display the "invite" (vcalendar)
part, an empty window is shown.

In fact, there is an exception which is being silently ignored:

exception 'Horde_Date_Exception' with message 'Failed to parse time 
string (18/05/2015 3:30 pm)' in /usr/share/php/Horde/Date.php:375 
Stack trace:

However, the problem disappears when the language, and date (format) 
setting is
changed in Preferences/Global preferences/Locale and Time:

   - Select your preferred language
   - Choose how to display dates (full format):

1. WORKS: English (American) and mm/dd/yyyy
2. WORKS: English (American) and yyyy-mm-dd
3. FAILS: English (American) and dd/mm/yyyy

4. FAILS: Spanish            and dd/mm/yy
5. FAILS: Spanish            and dd/mm/yyyy
6. WORKS: Spanish            and yyyy-mm-dd


The exception originates at:

     lib/Mime/Viewer/Itip.php : function _vEvent()

which uses the 'date_format' preference to "print" the dates present in the
vcalendar. The strigified dates are parsed back in the same function via
Horde_date.

I guess then problem arises due to an apparent ambiguity. One workaround is to
ignore the pref 'date_format' and use something like '%Y-%m-%d', but this
makes the dates appear in an unusual format for users.

This is on Horde 5.6.2.

Has any one else see the same issue?

What can we do about it?

Thank you,

Saved Queries