Remove defective svn::Path(QUrl) ctor
ClosedPublic

Authored by chehrlic on Aug 24 2017, 4:13 PM.

Details

Summary

Replace QUrl kio_svnProtocol::makeSvnUrl() with svn::Path kio_svnProtocol::makeSvnPath() - the returned QUrl was converted to svn::Path anyway.

The svn::Path(QUrl) ctor did it wrong - e.g. it did not remove the query part of the url). Since we don't need it anymore, we can remove it :)
Test Plan

Test kioslave with gwenview - try to open a image from svn.kde.org:

gwenview "ksvn://svn.kde.org/home/kde/trunk/tests/calligratests/interoperability/images/photoshop/Content 001.png"
also test with a local svn repository (ksvn+file:// ...) if available.

Diff Detail

Repository
R220 Subversion Client (KDE SVN)
Branch
review_makeSvnPath
Lint
No Linters Available
Unit
No Unit Test Coverage
chehrlic created this revision.Aug 24 2017, 4:13 PM
dfaure edited edge metadata.Aug 24 2017, 9:39 PM

Are you sure about RemoveUserInfo? Some people have a username in their svn URL, that's for sure.

The rest looks OK to me.

chehrlic updated this revision to Diff 18768.Aug 25 2017, 6:25 PM
  • Do not remove user info when creating a svn::Url from a QUrl
dfaure accepted this revision.Aug 27 2017, 7:17 PM

RemoveAutority contains RemoveUserInfo | RemovePort, so you probably don't want that either.

This revision is now accepted and ready to land.Aug 27 2017, 7:17 PM
chehrlic closed this revision.Aug 28 2017, 3:36 PM