Passkeys & Infohas are reported invalid
| Project: | BitTorrent |
| Version: | 5.x-2.0-beta3 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | won't fix |
Jump to:
I'm getting both of these. The first was invalid passkey when I had my torrent tracker set to mixed. After I switched it to public I was getting invalid infohash.
This is probably related to a problem with the generation of escaped codes passed in URLs not being 20 characters long.
Also this seems to be preventing the torrents from seeding (or there is another problem somewhere) thus making the module inoperable.
if (array_key_exists('passkey', $request)) {
if (strlen(urldecode($request['passkey'])) != 20) {
bt_message('Invalid passkey: '. $request['passkey'], BITTORRENT_MESSAGE_E$
}
}
if (strlen($request['info_hash']) != 20) {
bt_message('Invalid info_hash ('. strlen($request['info_hash']) .' - '. url$
}

#1
I tried creating a new torrent after having the site set to public and it is now working and didn't give an error. So there is probably in addition to the passkey problem something that will prevent the switching from mixed to public with existing torrents.
#2
There have been a couple of passkey bug reports, I think it is an encoding issue, I think I have a solution that will work for both infor_hash and passkey issues.
#3
5.x version is longer not supported.