qbittorrent / qBittorrent

qBittorrent BitTorrent client
https://www.qbittorrent.org
Other
26.83k stars 3.87k forks source link

redirect to magnet on add link broken #11894

Closed burris closed 4 years ago

burris commented 4 years ago

Please provide the following information

qBittorrent version and Operating System

ii qbittorrent-nox 1:4.2.0.99~201912180418-6819-118af03~ubuntu18.04.1 amd64 bittorrent client based on libtorrent-rasterbar (without X support)

If on linux, libtorrent-rasterbar and Qt version

ii libtorrent-rasterbar10 1.2.3+git20191216.68196dceae-1ppa1~18.04 amd64 C++ bittorrent library by Rasterbar Software

What is the problem

before, using "Add Torrent Link" in the web UI and providing an http url that redirects to a magnet url worked as expected, since upgrading to 4.2.1 QBT doesn't load the magnet after being redirected to it. I couldn't find any logging or error messages anywhere.

What is the expected behavior

add link with http url that redirects to magnet should load the magnet, at least that was the old behavior that I have been relying on

Steps to reproduce

I'm using the web UI exclusively, seems to happen with http and https urls. Just add a link that 302's to a magnet URI.

Extra info(if any)

thanks!

burris commented 4 years ago

I'm using what I think is the official ubuntu ppa

http://ppa.launchpad.net/qbittorrent-team/qbittorrent-stable/ubuntu bionic InRelease

glassez commented 4 years ago

Can you provide any torrent URL that are redirected to magnet for testing purposes?

ghost commented 4 years ago

just had the same problem, im testing new edge, so i had to reassign the magnet to it, before re-assigning chrome worked as it should, after it neither chrome can be re-assigned nor edge.

burris commented 4 years ago

Here is a simple Python script that redirects to a magnet, run it and try to add http://localhost:8000/ to qBitTorrent. https://gist.github.com/burris/78a6eb1f3cf34301835e650185bc142b

Running qBT-nox and the script on linux and using the web UI to load the above url results in nothing happening after the add links subwindow is dismissed. On Mac 4.2.1 I get an error dialog with the following message: "Cannot download 'http://localhost:8000/': The Network Access API cannot honor the request because the protocol is not known"

If I copy the magnet right out of the script and paste it into the load link window on either platform then qBT works as expected.