<table><tr><td style="">davidedmundson created this revision.<br />Restricted Application added a project: Frameworks.<br />Restricted Application added a subscriber: Frameworks.<br />davidedmundson 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/D12133">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>As per the amazingly detailed bug report, the spec says URLs should be<br />
percent encoded. The main knock-on effect is we get a different hash<br />
value for our preview file and we duplicate thumbnails if a user uses a<br />
GNOME app.</p>
<p>BUG: 393015</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Logged out and back in<br />
Copied jpeg to a file with spaces <br />
opened dolphin<br />
Found relevant cache file in ~/.cache/thumbnails/normal based on timestamp<br />
exiftool showed the correct URI.</p>
<p>Thumb URI : file:///tmp/with%20spaces.jpg</p>
<p>I assume the hash is now "correct" but I don't have a way to check</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R241 KIO</div></div></div><br /><div><strong>BRANCH</strong><div><div>master</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D12133">https://phabricator.kde.org/D12133</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/widgets/previewjob.cpp</div></div></div><br /><div><strong>To: </strong>davidedmundson<br /><strong>Cc: </strong>Frameworks, michaelh, ngraham, bruns<br /></div>