6.0.0-RC7
7/1/26

[#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 6/18/08 (6587 days ago)
Due 6/18/08 (6587 days ago)
Updated 7/7/08 (6568 days ago)
Assigned 6/18/08 (6587 days ago)
Resolved 7/7/08 (6568 days ago)
Github Issue Link
Github Pull Request
Milestone 2.2.1
Patch No

History
3410 Jan Schneider Comment #4
Taken from Horde DevelopersHorde Developers
State ⇒ Resolved
Reply to this comment
Great.
137 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


595 Jan Schneider Milestone ⇒ 2.2.1
 
479 Jan Schneider Assigned to Horde DevelopersHorde Developers
State ⇒ Assigned
Assigned to Jan Schneider
 
412 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()
398 adrieder (at) sbox (dot) tugraz (dot) at Comment #1
Priority ⇒ 1. Low
State ⇒ Unconfirmed
Patch ⇒ No
Milestone ⇒
Queue ⇒ Kronolith
Due ⇒ 6/18/08
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