<table><tr><td style="">poboiko created this revision.<br />poboiko added reviewers: Baloo, bruns, ngraham.<br />Herald added projects: Frameworks, Baloo.<br />poboiko requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D22557">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>If a folder was added to include/excludeFolders and then removed,<br />
there will be a stale entry in the config, for which <tt style="background: #ebebeb; font-size: 13px;">filePathToId</tt><br />
yields 0. When passed to <tt style="background: #ebebeb; font-size: 13px;">removeRecursively</tt>, it might reinterpret it<br />
as tree root, which is not something we want (although there are<br />
checks for it inside <tt style="background: #ebebeb; font-size: 13px;">WriteTransaction</tt>)</p>

<p>See also <a href="https://phabricator.kde.org/D22502" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;">D22502: [FileIndexerConfig] skip invalid entries from included/excludedFolders</a></p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R293 Baloo</div></div></div><br /><div><strong>BRANCH</strong><div><div>no-indexcleaner-assert (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D22557">https://phabricator.kde.org/D22557</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/file/indexcleaner.cpp</div></div></div><br /><div><strong>To: </strong>poboiko, Baloo, bruns, ngraham<br /><strong>Cc: </strong>kde-frameworks-devel, LeGast00n, sbergeron, fbampaloukas, domson, ashaposhnikov, michaelh, astippich, spoorun, ngraham, bruns, abrahams<br /></div>