Page MenuHomePhorge

Prepare fix - Error while updating search collection
ClosedPublic

Authored by knauss on May 2 2016, 12:11 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Mar 11, 12:31 PM
Unknown Object (File)
Jan 24 2024, 5:12 PM
Unknown Object (File)
Jan 24 2024, 5:05 PM
Unknown Object (File)
Jan 24 2024, 4:33 PM
Unknown Object (File)
Jan 24 2024, 2:49 PM
Unknown Object (File)
Jan 24 2024, 2:40 PM
Unknown Object (File)
Jan 24 2024, 10:46 AM
Unknown Object (File)
Jan 24 2024, 12:47 AM
Subscribers
None

Details

Summary

Current theorie, if the error:
Cannot add or update a child row: a foreign key constraint fails
(akonadi.collectionpimitemrelation,

CONSTRAINT `collectionpimitemrelation_ibfk_2`
FOREIGN KEY (`PimItem_id`)
REFERENCES `pimitemtable` (`id`)
ON DELETE CASCADE
ON UPDATE CASCADE)"

Collection::addPimItem is performed for items in PimItem, that do not exist anymore.
This patch added a debug message, what items are not vaild anymore in PimItem.

Test Plan

mollekopf tests this patch on this installation and give results back,
if we hit the correct part to fix it.

Diff Detail

Repository
rA akonadi
Branch
kolab/integration/1.12.0
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 3521
Build 3496: arc lint + arc unit

Event Timeline

knauss retitled this revision from to Prepare fix - Error while updating search collection.
knauss updated this object.
knauss edited the test plan for this revision. (Show Details)
knauss added a reviewer: mollekopf.
mollekopf edited edge metadata.
This revision is now accepted and ready to land.May 2 2016, 12:22 PM
This revision was automatically updated to reflect the committed changes.

this does not fix the issue and i rework this patch

This revision is now accepted and ready to land.May 12 2016, 10:35 AM
knauss edited edge metadata.

now it checks if we have anything to add and do not crash,
if there is is nothing to add.

Ship it! (you already accepted it)

This revision was automatically updated to reflect the committed changes.