<table><tr><td style="">ngraham edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-vd533ufln2jp3ov/">(Show Details)</a><br />ngraham edited the test plan for this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-krkyffyu53s5u25/">(Show Details)</a>
</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/D15583">View Revision</a></tr></table><br /><div><strong>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;"><span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">[Submitting this patch on behalf of James Ausmus</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">`balooctl add includeFolders/excludeFolders` was checking for parent directories using a startsWith string match</span>, <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">who attached it to https://bugs.kde.org/show_bug.cgi?id=396535 and did not respond to a request to submit it here]<br />
<br />
balooctl add includeFolders/excludeFolders was checking for parent<br />
directories using a startsWith string match,</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">so directories with the same initial character would match.</span> <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">so directories with the<br />
same initial character would match - for example:<br />
<br />
```<br />
$ balooctl add excludeFolders t<br />
$ balooctl add excludeFolders test<br />
Parent folder /test/kde/baloo/t is already in the list of exclude folders</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">Fix this by appending a path separator to the path used for parent</span><br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">```</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">checking.</span><br />
<br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">Fix this</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">[Inspired</span> by <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">appending a path separator to the path used for parent<br />
checking.</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">the patch James Ausmus submitted with https://bugs.kde.org/show_bug.cgi?id=396535]</span><br />
<br />
BUG: 396535<div style="padding: 8px 0;">...</div></div></div></div><br /><div><strong>CHANGES TO TEST PLAN</strong><div><div style="white-space: pre-wrap; color: #74777D;"><span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">Executed the test plan from https://bugs.kde.org/show_bug.cgi?id=396535;</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"><br />
<br />
```<br />
balooctl disable<br />
balooctl enable<br />
mkdir ~/test1 ~/test2 ~/test1-test<br />
balooctl config add excludeFolders ~/test1<br />
balooctl config add excludeFolders ~/test2<br />
balooctl config add excludeFolders ~/test1-test<br />
```<br />
<br />
If it worked,</span> <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">it works now</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">you don't get any errors</span>.</div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R293 Baloo</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D15583">https://phabricator.kde.org/D15583</a></div></div><br /><div><strong>To: </strong>ngraham, Baloo, Dolphin, bruns, Frameworks<br /><strong>Cc: </strong>anthonyfieroni, kde-frameworks-devel, ashaposhnikov, michaelh, astippich, spoorun, ngraham, bruns, abrahams<br /></div>