Bug 383310

Summary: Import torrent operation fails with unable to copy torrent file error
Product: [Applications] ktorrent Reporter: Germano Massullo <germano.massullo>
Component: generalAssignee: Joris Guisson <joris.guisson>
Status: RESOLVED FIXED    
Severity: normal CC: enderbyte09, get.sonic, jackhill3103, martineznovo
Priority: NOR    
Version: 5.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description Germano Massullo 2017-08-09 12:33:15 UTC
While trying to import a .torrent file I get:

Unable to copy file:///home/user/c/G.torrent in /home/user/.local/share/ktorrent/tor2/torrent: File or folder file:///home/user/c/G.torrent does not exist.

ktorrent-5.0.1-3.fc26.x86_64
Comment 1 Syam 2018-05-05 06:48:32 UTC
I can confirm this bug on Fedora 28. KTorrent v5.1.0. x86-64

The torrent file is valid and actually was exported from KTorrent itself. KTorrent is able to open the same torrent file as a fresh file (using Open Torrent action), just not by "Import torrent".
Comment 2 Jesús Martínez Novo (Ciencia Al Poder) 2022-07-09 14:29:30 UTC
I can confirm this bug on OpenSuSE Tumbleweed, KTorrent version 22.04.2

When I activate logging, I see this:

sáb jul 9 16:19:10 2022: Qt Debug: copy() QUrl("file:file:///home/user/Descargas/Azureus/torrents/A.torrent") to QUrl("file:///home/jesus/.local/share/ktorrent/tor0/torrent") mode= -1

Note how there's a "file:file:" on the first QUrl. That looks suspicious.
Comment 3 Jack Hill 2023-11-09 17:15:14 UTC
*** Bug 464351 has been marked as a duplicate of this bug. ***
Comment 4 Bug Janitor Service 2023-11-09 18:02:01 UTC
A possibly relevant merge request was started @ https://invent.kde.org/network/ktorrent/-/merge_requests/83