Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Bencode CPAN distribution.

Report information
The Basics
Id: 19665
Status: resolved
Priority: 0/
Queue: Bencode

People
Owner: ARISTOTLE [...] cpan.org
Requestors: DarGo [...] sPam.lA
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: need lenient bdecode option
I've found many invalid torrents where the bencode format is slightly violated (mostly key sort order) and would like to bdecode them and then bencode them to create a valid torrent. since your module doesn't make it possible, I use Convert::Bencode to parse them, then Bencode to create to create the new torrent. would be nice if your module would also be able to bdecode in a lenient manner.
Subject: Re: [rt.cpan.org #19665] need lenient bdecode option
Date: Sat, 9 Sep 2006 03:11:19 +0200
To: Guest via RT <bug-Bencode [...] rt.cpan.org>
From: "A. Pagaltzis" <pagaltzis [...] gmx.de>
(Sorry it took me so long to get to this.) * Guest via RT <bug-Bencode@rt.cpan.org> [2006-06-03 00:40]: Show quoted text
> I've found many invalid torrents where the bencode format is > slightly violated (mostly key sort order) and would like to > bdecode them and then bencode them to create a valid torrent.
Permitting mis-sorted dictionaries in torrents is no big deal, I guess. But what other format violations did you encounter? Others could potentially be much harder to allow for given the way the code works.
1.2 is on its way to the CPAN. It includes an option to decode leniently. Please test it and see if it helps. If not, please reply; until further notice, I consider this ticket resolved.