Bug 355240

Summary: Opening subfolder in the files tab doesn't work
Product: [Applications] ktorrent Reporter: loic.damien
Component: generalAssignee: Joris Guisson <joris.guisson>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: NOR    
Version First Reported In: 4.3.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: A .torrent file with a subfolder, to test this bug

Description loic.damien 2015-11-12 13:25:56 UTC
If you try to open a sub-folder in a torrent by double click on it or doing right-click, open, it doesn't work.

If you try to open the root folder of the torrent, it open its parent.
It's looks like KTorrent always omit the root folder of the torrent when opening a folder in the Files tab.

If you create a torrent with KTorrent (File -> new), it works correctly, but if you close this torrent and open the .torrent created by KTorrent, the bug is here.

Reproducible: Always

Steps to Reproduce:
1. Open a torrent with a sub-folder
2. Try to open the sub-folder by double-clicking on it the files tab

Actual Results:  
An error message saying the file or folder doesn't exist.
The URL (file://...) point a folder that doesn't exist: the root folder of the torrent is omitted.

For example if the torrent contains:
test_torrent/
└── bar
    └── foo

Ktorrent try to open file://../Download/bar instead of file://../Download/test_torrent/bar.

Expected Results:  
The sub-folder is opened in the file manager.
Comment 1 loic.damien 2015-11-12 13:26:59 UTC
Created attachment 95462 [details]
A .torrent file with a subfolder, to test this bug
Comment 2 Justin Zobel 2022-10-17 22:53:34 UTC
Thank you for reporting this bug in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "CONFIRMED" when replying. Thank you!
Comment 3 Bug Janitor Service 2022-11-01 05:06:01 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Bug Janitor Service 2022-11-16 05:17:35 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!