<table><tr><td style="">hein created this revision.<br />hein added reviewers: dfaure, thiago, elvisangelaccio.<br />Restricted Application added a project: Frameworks.<br />Restricted Application added a subscriber: Frameworks.
</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/D9029" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>f62768d04652 in qtbase.git introduced a behavior change in QUrl<br />
causing it to reject URLs with a path of "//foo" (note the double<br />
slash) as invalid.</p>

<p>Both KNewFileMenu and KIO::mkpath contained code following this<br />
pattern:</p>

<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">url.path() + '/' + name</pre></div>

<p>This is a bad mix with forwarding slaves like kio_desktop, which<br />
translate a top-level path of / to some other URL:</p>

<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">(desktop:)/ + / + foo = //foo</pre></div>

<p>This patch addresses the two instances of this by wrapping the<br />
string building in QDir::cleanPath, which I think is the shortest<br />
and most readable way to go.</p>

<p><a href="https://phabricator.kde.org/R241:2353119aae8f03565bc7779ed1d597d266f5afda" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;" rel="noreferrer">2353119aae8f</a> in kio.git (<a href="https://phabricator.kde.org/D8836" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: line-through;" rel="noreferrer">D8836</a>) was another commit fixing fallout<br />
from this Qt change. Is unlikely this patch will be the last one.<br />
I suspect many other variations of this problem lurk about the<br />
codebase.</p>

<p>BUG:387073</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/D9029" rel="noreferrer">https://phabricator.kde.org/D9029</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/core/mkpathjob.cpp<br />
src/filewidgets/knewfilemenu.cpp</div></div></div><br /><div><strong>To: </strong>hein, dfaure, thiago, elvisangelaccio<br /><strong>Cc: </strong>Frameworks<br /></div>