6.0.0-alpha14
7/2/25

[#1994] getByUID can return multiple events
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

History
07/18/2006 03:04:25 PM Jan Schneider Comment #4
State ⇒ Resolved
Reply to this comment
Fixed in Kronolith 2.1.3.
06/16/2006 02:27:29 PM Jan Schneider State ⇒ Assigned
 
06/16/2006 01:55:57 PM Chuck Hagenbuch Comment #3 Reply to this comment
They're unique to an _event_ - not unique in the world. So if two 
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.
06/16/2006 09:11:17 AM Jan Schneider Comment #2
State ⇒ Feedback
Reply to this comment
UIDs *are* unique. The problem of this ticket is probably that we 
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?
05/29/2005 05:04:56 AM Chuck Hagenbuch Summary ⇒ getByUID can return multiple events
 
05/18/2005 10:38:29 PM Chuck Hagenbuch Assigned to Horde DevelopersHorde Developers
State ⇒ Assigned
 
05/18/2005 06:07:28 PM scalero (at) datadec (dot) es Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ I can not see the new iTip event created with 'viewevent.php'
Queue ⇒ Kronolith
State ⇒ Unconfirmed
Reply to this comment
I run FRAMEWORK3 with the following versions:

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.

Saved Queries