<table><tr><td style="">ahmadsamir updated this revision to Diff 82974.<br />ahmadsamir retitled this revision from "[StatJob] Change mostLocalUrl to only handle protocols with Class=:local" to "[StatJob] Make mostLocalUrl ignore remote (ftp, http...etc) URLs".<br />ahmadsamir edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-sbx7m566ipkylob/">(Show Details)</a><br />ahmadsamir edited the test plan for this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-kzz6sft6tufdxkg/">(Show Details)</a><br />ahmadsamir added a comment.
</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/D29782">View Revision</a></tr></table><br /><div><div><p>Improve</p></div></div><br /><div><strong>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;"><div style="padding: 8px 0;">...</div>a statjob would be fired for remote urls<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> (ftp, http... etc), such urls<br />
will never have a mostLocalUrl. Instead check for protocols with Class=:local.<br />
<br />
Also if the statjob is created via KIO::mostLocalUrl, the job was, correctly,<br />
cancelled if the url isLocalFile()</span>, <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">such urls will never have a</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">extend it to also cancel the job if the</span><br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">mostLocalUrl. Instead check for protocols with Class=</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">protocol Class isn't "</span>:local<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">"</span>.<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);">make && ctest</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">the jobtest unit test still passes</span></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R241 KIO</div></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D29782?vs=82959&id=82974">https://phabricator.kde.org/D29782?vs=82959&id=82974</a></div></div><br /><div><strong>BRANCH</strong><div><div>l-most-local-url-local (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D29782">https://phabricator.kde.org/D29782</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/core/statjob.cpp<br />
src/core/statjob.h</div></div></div><br /><div><strong>To: </strong>ahmadsamir, Frameworks, dfaure, sitter<br /><strong>Cc: </strong>kde-frameworks-devel, LeGast00n, cblack, michaelh, ngraham, bruns<br /></div>