6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
8/12/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#13268] Kolab_Storage: PHP error on modifying contact picture
*
Your Email Address
*
Spam protection
Enter the letters below:
. ..___. . ..__. |\/|[__ | |\ || | | |[___|___| \||__\
Comment
> Ok, I've added the usual lot of debug statements > and found out what's going on: > > The $delete() array contains a list of "IMAP uids" (=backend IDs) > that got deleted - including the corresponding object uid. > > When you update a contact in turba, $_data[self::OBJECTS][$object_id] > will contain the *current* datastructure as passed on by the turba > Kolab driver. > > There is no 'id' column in '_attachments' as > the '_attachments' datastructure looks like this: > ------------------------- > Array > ( > [photo.jpg] => Array > ( > [type] => image/jpeg > [content] => Resource id #331 > ) > ) > ------------------------- > > > The transformation of that data structure for the on-disc format > of the cache happens a few lines below. > > Things are different when you delete a contact, > '_attachments' then looks like this as it's not > updated by the turba Kolab driver itself: > ------------------------------------------------------- > [_attachments] => Array > ( > [id] => Array > ( > [0] => photo.jpg > ) > > [type] => Array > ( > [image/jpeg] => Array > ( > [0] => photo.jpg > ) > > ) > > ) > ------------------------------------------------------- > > Please apply the attached patch to handle both cases. > > I've tested the patch with debug statements in place > to verify it does delete the correct attachment > in both the modify and delete case of a contact object. >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers