Diffusion Baloo f57c4bc27b81

Avoid infinite loops when fetching the URL from DocumentUrlDB

Authored by bruns on Apr 19 2018, 12:20 AM.

Description

Avoid infinite loops when fetching the URL from DocumentUrlDB

Summary:
Some users apparently have DBs which contain infinite loops in the idTree
(a parentId pointing to itself or one of its children). This manifests in
either crashes due to exhausted memory and/or the process being stuck
with 100% CPU load.

The problem can only be completely solved by either recreating the DB, or
by cleaning the DB from any problematic records. As in interim solution,
stop the code from crashing.

BUG: 378754
CCBUG: 385846
CCBUG: 391258
CCBUG: 393181

Reviewers: Baloo, michaelh, Frameworks, ngraham

Reviewed By: ngraham

Subscribers: ngraham, Frameworks

Tags: Frameworks, Baloo

Differential Revision: https://phabricator.kde.org/D12335

Details

Committed
brunsMay 3 2018, 10:37 PM
Reviewer
ngraham
Differential Revision
D12335: Avoid infinite loops when fetching the URL from DocumentUrlDB
Parents
R293:96fb5896c304: add missing license
Branches
Unknown
Tags
Unknown