6.0.0-alpha14
6/24/25

[#10422] Synchronization fails when turba objects have been deleted
Summary Synchronization fails when turba objects have been deleted
Queue Turba
Queue Version Git master
Type Bug
State Resolved
Priority 2. Medium
Owners mrubinsk (at) horde (dot) org
Requester hordebug (at) zulan (dot) net
Created 08/11/2011 (5066 days ago)
Due
Updated 08/11/2011 (5066 days ago)
Assigned
Resolved 08/11/2011 (5066 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch Yes

History
08/11/2011 11:00:35 PM Michael Rubinsky Assigned to Michael Rubinsky
State ⇒ Resolved
 
08/11/2011 10:57:13 PM Git Commit Comment #2 Reply to this comment
Changes have been made in Git for this ticket:

$list might be empty, e.g., if searching history for deleted objects.
Bug: 10422

  1 files changed, 5 insertions(+), 3 deletions(-)
http://git.horde.org/horde-git/-/commit/95e9f5c12681155324e0ca561584c7242e534eb8
08/11/2011 03:43:37 PM hordebug (at) zulan (dot) net Comment #1
Priority ⇒ 2. Medium
Patch ⇒ Yes
Milestone ⇒
Queue ⇒ Turba
Summary ⇒ Synchronization fails when turba objects have been deleted
Type ⇒ Bug
State ⇒ Unconfirmed
Reply to this comment
I ran into the following error when synchronizing my contacts with syncml:

PHP Fatal error:  Call to a member function isGroup() on a non-object 
in /home/tilsche/www/horde/turba/lib/Api.php on line 542

bd5d69849182866729bfc77aa097ca8e4ecd1281 introduced the filtering of 
sync results for groups. This fails for non-existing turba_objects, it 
seems to be the case when a turba object has been deleted - it is in 
the history but cannot be retrieved (and cannot be checked for being a 
group or not).

I have implemented a quick fix by checking for non-null before 
checking for group.

http://zulan.net/0002-Fixed-bug-when-tracking-the-history-of-deleted-turba.patch

It works for me but I am not sure if this covers all cases (e.g. what 
about deleted groups?).

Saved Queries