Bug#786706: bts: "unrecognized BTS URL type" warnings

James McCoy jamessan at debian.org
Mon May 25 04:35:44 UTC 2015


Control: tag -1 confirmed

On Sun, May 24, 2015 at 05:47:20PM +0200, Julien Cristau wrote:
> Recently I've started seeing things like this:
> 
> $ bts -m show 784960
> bts: in href_to_filename: unrecognised BTS URL type: <a href="bugreport.cgi?bug=784960;mbox=yes">
> bts: in href_to_filename: unrecognised BTS URL type: <a href="bugreport.cgi?bug=784960;msg=2">

Ok, I see the issue.  Our URL parsing relies on a specific ordering of
the parameters, but the URLs aren't matching that ordering.

Looks like we finally need to convert the code to use URI->query_form
(like I apparently intended to start doing in 2007) so we're not
manually parsing query parameters.

Cheers,
-- 
James
GPG Key: 4096R/331BA3DB 2011-12-05 James McCoy <jamessan at debian.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/devscripts-devel/attachments/20150525/8ec63680/attachment.sig>


More information about the devscripts-devel mailing list