valpackett / transmitter

A WebExtension for the Transmission BitTorrent client
The Unlicense
97 stars 15 forks source link

First magnet link "in session"? gives 404 error #17

Open abs0 opened 6 years ago

abs0 commented 6 years ago

The first magnet link I open gives a 404 error showing a URL of the form: http://www.transmitter.web-extension/magnet%3A%3Fxt%3Durn%3Abtih%3A7KW5HVDIXUWV5XTOMIJLN6S4EAHQ5PJL

Its not immediately clear what a "session" might be here - restarting the browser does not trigger. Could be affected by cached DNS lookup?

valpackett commented 6 years ago

hm, weird.

If it doesn't happen when restarting the browser, how else did you restart the "session"? Does refreshing the 404 page do anything?

abs0 commented 5 years ago

Whatever odd "session" behaviour has now gone away. Clicking on a magnet link now always fails with a 404 error showing a URL of the form http://transmitter.web-extension/magnet%3A%3Fxt%3Durn%3Abtih%3AJYJLRECEIZIC44VLXU2JVMF462NQSUNN

while right clicking on the link and selecting "Download with Transmission remote" always works.

Have tried disabling all other extensions. Firefox 63.0.3 on NetBSD/amd64

et304383 commented 4 years ago

I see the same behaviour too. I dunno if you manage the Chrome Extension too but it doesn't do it there.

In Chrome, the download just starts in the background on transmission and doesn't attempt to open the Transmission Web UI.

Could you maybe stop trying to open the transmission web UI? I don't know why anyone would need this to happen on every magnet link click.

valpackett commented 4 years ago

Could you maybe stop trying to open the transmission web UI?

Handling a URL scheme in an extension requires me to do something with the request. Redirecting to the web UI was the easiest thing to do. I guess a page that closes itself could be done too..

But anyway the 404 error on an internal transmitter.web-extension URL happens before that URL redirects to the web UI?? probably..