6.0.0-alpha14
6/27/25

[#6946] webdav deleting events
Summary webdav deleting events
Queue Kronolith
Queue Version HEAD
Type Bug
State Resolved
Priority 1. Low
Owners jan (at) horde (dot) org
Requester adrieder (at) sbox (dot) tugraz (dot) at
Created 06/18/2008 (6218 days ago)
Due 06/18/2008 (6218 days ago)
Updated 07/07/2008 (6199 days ago)
Assigned 06/18/2008 (6218 days ago)
Resolved 07/07/2008 (6199 days ago)
Github Issue Link
Github Pull Request
Milestone 2.2.1
Patch No

History
07/07/2008 10:39:34 PM Jan Schneider Comment #4
Taken from Horde DevelopersHorde Developers
State ⇒ Resolved
Reply to this comment
Great.
07/07/2008 07:59:13 PM adrieder (at) sbox (dot) tugraz (dot) at Comment #3 Reply to this comment
The following commit seems to fix the problem



http://article.gmane.org/gmane.comp.horde.cvs/65849


07/06/2008 05:24:59 PM Jan Schneider Milestone ⇒ 2.2.1
 
06/18/2008 09:43:47 PM Jan Schneider Assigned to Horde DevelopersHorde Developers
State ⇒ Assigned
Assigned to Jan Schneider
 
06/18/2008 12:52:04 PM adrieder (at) sbox (dot) tugraz (dot) at Comment #2
New Attachment: sql.php.patch Download
Reply to this comment
Another and maybe better/cleaner fix provides the attached patch.

We can savley remove the "else" statement since the one day gets added 
anyway by listEventsConditional()
06/18/2008 08:58:39 AM adrieder (at) sbox (dot) tugraz (dot) at Comment #1
Priority ⇒ 1. Low
State ⇒ Unconfirmed
Patch ⇒ No
Milestone ⇒
Queue ⇒ Kronolith
Due ⇒ 06/18/2008
Summary ⇒ webdav deleting events
Type ⇒ Bug
Reply to this comment
events that are being deleted by a webdav client do not get deleted in 
the kronolith database, because the api function _kronolith_list() 
gets an empty event UID list.

The reason for this is, that the $endstamp is set to 9999/12/31 and in 
the further processing 1 day is added to this date which caused the 
year to be 10000.

The subsequent sql queries (mysql) with '10000-01-01 00:00:00' result 
into an error.



One possible fix for this problem is to set the 'day' (or 'mday') to 
30 in api.php:

$endstamp = new Horde_Date(array('year' => 9999, 'month' => 12, 'day' => 30));




Saved Queries