Passkeys & Infohas are reported invalid

robbt - May 31, 2008 - 20:23
Project:BitTorrent
Version:5.x-2.0-beta3
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:won't fix
Description

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

robbt - May 31, 2008 - 20:36

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

bradfordcp - June 2, 2008 - 15:21

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

overall - July 8, 2009 - 03:03
Status:active» won't fix

5.x version is longer not supported.

 
 

Drupal is a registered trademark of Dries Buytaert.