transmission icon indicating copy to clipboard operation
transmission copied to clipboard

[v3 to 49b0df8] transmission-qt: always 'invalid or corrupt torrent file'

Open dchmelik opened this issue 3 years ago • 6 comments

When I Slackware64 15 GNU/Linux (stable & current both up-to-date) transmission 3 & git download .torrents/magnets (for months and updated today) it says 'invalid or corrupt torrent file' even computer science expert ones such as magnet:?xt=urn:btih:8dadac67070daa13cf4c51b38946cf06b33d14b0&dn=FreeBSD-13.1-RELEASE-arm-armv6-RPI-B.img.xz . Sometimes works to reload .torrent or use magnet to torrent converter but lately often doesn't convert.

dchmelik avatar Jul 20 '22 01:07 dchmelik

I'm having a little trouble reading this bug report. What version of Transmission are you using?

ckerr avatar Jul 21 '22 20:07 ckerr

The problem started with v3 and got worse last several commits. I used current at any post time (was 3.00+ (c50da43ae0) at original version of this reply).

dchmelik avatar Jul 22 '22 03:07 dchmelik

What exactly does this mean that it got worse? You're seeing the error more often, or what?

Used to happen to all .torrents and now also all magnets.

Are you saying that when you try to add magnet:?xt=urn:btih:8dadac67070daa13cf4c51b38946cf06b33d14b0&dn=FreeBSD-13.1-RELEASE-arm-armv6-RPI-B.img.xz by URl in transmission-qt you see the error message "invalid or corrupt torrent file"?

Yes. Just transmission-qt though (not GTK).

dchmelik avatar Jul 22 '22 09:07 dchmelik

When you open the dialog it's parsing the magnet link and only pasting the Display Name from the link i.e. FreeBSD-13.1-RELEASE-arm-armv6-RPI-B.img.xz and that results in the invalid or corrupt torrent file error.

If you paste the contents of your clipboard (the whole shebang magnet:?xt=urn:btih:8dadac67070daa13cf4c51b38946cf06b33d14b0&dn=FreeBSD-13.1-RELEASE-arm-armv6-RPI-B.img.xz) into the text field over the stripped name then it'll start the torrent correctly.

It seems this was introduced by this inadvertently treating all magnet links as duplicates and just using the DN.

orbital-mango avatar Jul 27 '22 19:07 orbital-mango

It seems this was introduced by this inadvertently treating all magnet links as duplicates and just using the DN.

Maybe I'm misreading this, so I wanted to confirm -- are you saying that if you already have a magnet link that hasn't been converted to a full .torrent yet, you can't add a second magnet link in transmission-qt due to that commit?

ckerr avatar Jul 27 '22 19:07 ckerr

When you attempt to add a magnet link that hasn't been added ever before whether as a .torrent file or magnet link, the above seems to format the entry pasted (automatically when opening the dialog) into the source textbox using the display name rather than the raw magnet link. This then fails as invalid or corrupt torrent file... Understandbly as there is no torrent file as yet.

I probably am not explaining this too well :)

orbital-mango avatar Jul 27 '22 19:07 orbital-mango

Fixed by #3787.

ckerr avatar Nov 28 '22 03:11 ckerr