Summary | getByUID can return multiple events |
Queue | Kronolith |
Queue Version | 2.0.3 |
Type | Bug |
State | Resolved |
Priority | 1. Low |
Owners | Horde Developers (at) |
Requester | scalero (at) datadec (dot) es |
Created | 05/18/2005 (7350 days ago) |
Due | |
Updated | 07/18/2006 (6924 days ago) |
Assigned | 06/16/2006 (6956 days ago) |
Resolved | 07/18/2006 (6924 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
State ⇒ Resolved
people using the same Kronolith install receive the same iCal invite,
and add it to their private calendars, then there will be two events
in the db with the same uid. This is correct, since both of them refer
to the same event. But we might return the wrong one because of the
way that getByUID is written.
State ⇒ Feedback
failed to update existing events with the same UID and tried to create
a new one instead. I'm pretty positive that this has been fixed long
ago, thugh getByUID() should return multiple events anymore. Can
anybody confirm this?
State ⇒ Assigned
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ I can not see the new iTip event created with 'viewevent.php'
Queue ⇒ Kronolith
State ⇒ Unconfirmed
Horde --> 3.0.4
Imp --> 4.0.3
Kronolith --> 2.0.3
When I receive a mail with a Itip invitation and create the event in
my personal calendar by means of the Itip MIME viewer, the UID of the
event created is the same of the event parent(itip content).
When I create the new event with the Itip MIME viewer appears a link
"View event" and opens a window loading 'viewevent.php' with only one
parameter --> 'uid'. This error appears in my Apache log:
[Fri May 13 11:21:54 2005] [error] PHP Fatal error: Call to a member
function on a non-object in /u01//horde/kronolith/viewevent.php on
line 98
And I think this is a bug because 'viewevent.php' obtain the event in
the line 18 with:
$event = &$kronolith->getByUID($uid);
The problem is that this function makes a SELECT of kronolith_events
by the 'uid' field and this field is not unique! This function can
return the new event created or the original iTip event attached. In
my case seems that the function returns the original event. And I
have not permissions to view this original or parent event! that
causes the error in line 98 because the '$event->getCalendar()' is not
my own calendar.
I hope to have clarified something the things...
Sebastian Calero.