<table><tr><td style="">sitter updated this revision to Diff 76934.<br />sitter 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/D27804">View Revision</a></tr></table><br /><div><div><p>extend test coverage to % character in wg and umlaut in wg.<br />
I've also changed the construction in browse.cpp to use QUrlQuery so it does not trip over potential hash or question marks in the workgroup</p>

<p>libsmbc is actually incredibly lenient in parsing the input urls, so you can more or less throw anything unencoded at it and it'll work.<br />
that is why the original <tt style="background: #ebebeb; font-size: 13px;">sambaUrl.toString(PrettyDecoded)</tt> call works despite also not carying much for encoding.</p>

<p><a href="https://phabricator.kde.org/p/thiago/" style="
              border-color: #f1f7ff;
              color: #19558d;
              background-color: #f1f7ff;
                border: 1px solid transparent;
                border-radius: 3px;
                font-weight: bold;
                padding: 0 4px;">@thiago</a> I am not sure I understood points 3 and 4 but I think they aren't really applicable:</p>

<ol class="remarkup-list" start="3">
<li class="remarkup-list-item">libsmbc doesn't give out urls so there is no need to convert the other way around</li>
<li class="remarkup-list-item">slash, backslash, colon may not be part of netbios names and by extension the url parsing always works regardless of encoding as the host field cannot be ambigious with a trailing slash (which we always have)</li>
</ol>

<p>All that said, perhaps it'd make sense to change everything to QUrl::FullyEncoded to be on the safe side for the future? smbc does know how to deal with complete percent encoding from what I can tell</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R320 KIO Extras</div></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D27804?vs=76847&id=76934">https://phabricator.kde.org/D27804?vs=76847&id=76934</a></div></div><br /><div><strong>BRANCH</strong><div><div>smb-smburl-static-autotest-ipv6-spaces</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D27804">https://phabricator.kde.org/D27804</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>smb/autotests/smburltest.cpp<br />
smb/kio_smb_browse.cpp<br />
smb/smburl.cpp</div></div></div><br /><div><strong>To: </strong>sitter, ngraham<br /><strong>Cc: </strong>kde-frameworks-devel, kfm-devel, thiago, pberestov, iasensio, fprice, LeGast00n, cblack, MrPepe, fbampaloukas, alexde, GB_2, Codezela, feverfew, meven, michaelh, spoorun, navarromorales, firef, ngraham, andrebarros, bruns, emmanuelp, mikesomov<br /></div>