Re: Bug#792855: apt-listbugs seems to strip the trailing zero from the version?

Francesco Poli <[email protected]>
Newsgroups gmane.linux.debian.devel.debbugs
Message-ID <[email protected]>
Control: severity -1 normal
Control: reassign -1 debbugs 2.4.1.1


On Sun, 19 Jul 2015 14:23:24 +0200 Johannes Schauer wrote:

[...]
> Hi,

Hello Johannes,
thanks for your bug report!

> 
> I just tried to install dgit and got the following:
> 
[...]
> Retrieving bug reports... Done
> Parsing Found/Fixed information... Done
> serious bugs of dgit (→ 0.30) <Resolved in some Version>
>  b1 - #774628 - dgit must support intended dgit repo move (Fixed: 0.3)
> Summary:
>  dgit(1 bug)
> Are you sure you want to install/upgrade the above packages? [Y/n/?/...] 
> 
> 
> 
> Bug #774628 was fixed in version 0.30, yet somehow apt-listbugs seems to
> think that it was only fixed in version 0.3. Since version 0.3 is lower
> than version 0.30 it does not see the bug being fixed in the current
> version I suppose.

I've just managed to reproduce the issue.
What happens is that bug #774628 is found in version "dgit/0.22.1" and
fixed in version "0.30".
Hence, apt-listbugs should consider dgit/0.30 as not buggy.

However, the BTS SOAP interface apparently sends this fixed version
("0.30") as a number (0.3), rather than as a string.
As a consequence, apt-listbugs considers #774628 as fixed in version
0.3 and *then* found again in the later version 0.22.1 : the final
result is that it considers dgit/0.30 as buggy.

> 
> I do not know why above it stripped off the trailing zero.

The BTS SOAP interface sends this fixed version as the 0.3 number,
rather than as the "0.30" string.
The --debug option of apt-listbugs shows:

[...]
#<SOAP::Mapping::Object:0x1011d90 {}forwarded="" {}unarchived="" {}outlook="" {}location="db-h" {}subject="dgit must support intended dgit repo move" {}fixed_versions=[0.3] {}owner="" {}severity="serious" {}affects="" {}found={"dgit/0.22.1"=>nil} {}originator="Ian Jackson <[email protected]>" {}date=1420469821 {}blocks="" {}fixed_date=[] {}log_modified=1436360961 {}found_date=[] {}blockedby="" {}summary="" {}keywords="" {}archived=0 {}source="dgit" {}done="Ian Jackson <[email protected]>" {}id=774628 {}tags="" {}package="dgit" {}msgid="<[email protected]>" {}mergedwith="" {}last_modified=1436360961 {}fixed={0.3=>nil} {}pending="done" {}bug_num=774628 {}found_versions=["dgit/0.22.1"]>
[...]



I am reassigning your bug report to package debbugs.

Dear debbugs maintainers, could you please look into this issue?
I think the BTS SOAP interface should always treat fixed/found versions
as strings, and never as numbers (even when they look like numbers!).

Please fix this issue, by forcing the SOAP interface to always send
fixed/found versions as strings.

Thanks for your time!
Bye.


-- 
 http://www.inventati.org/frx/
 There's not a second to spare! To the laboratory!
..................................................... Francesco Poli .
 GnuPG key fpr == CA01 1147 9CD2 EFDF FB82  3925 3E1C 27E1 1F69 BFFE
signature.asc (application/pgp-signature, 819 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJVq8F6AAoJED4cJ+Efab/+V4AP/0Z19rbNddyrBG9WNojjnb7u
W0w3vMO33IJ/TALHAs04H/zACtIXZwhQ5zOaoXz8aXoHyqHwfTqKLpxTBF3B1Twq
L9N+AeD/bpwj/eITBk3SgGVEZwdb3rL1qLXx7c4ueeVgsxHY5YAaOIeF04+d7XVq
6i+FVenNnHyo6Hudh4QIHKu8FCjicVaoz+5OfQ1jIqXagkpj2CcXj3NWYzOKgyqF
xg60zc9ga6FN6eu3dK4TDCeOfmGAKqofV9liR7MPAw55hvPVHmYS35UGv6Ct9WsR
ff+gUj5jKtxEjRvkHhznQPhbboBZyWZox+UgLXzu/FehMlWzir87cuFEXouNU95Z
N6sUsCvAFpQNfeLElj64e5HHgMcRLlaS42xUWlfmHI2dMQcI3NEwa607bqMwpo9H
VlB8VTgo/9QqqRAAX6fGHOaKwfAdztzD/pK2HB3uvEJkCoCzBb//yi8n+4lne3F/
xiXLByhKjB2OHhSOEYuJ+x7PZnfLrfUhBzeE61jr6pOWfaOzzb1wc/Zk5MP6TdEk
ENmJ9aDQ0b25O1ni+KU8qT2v2sLC3oU4qUlWAbz4uqieoXUr2AJ8f+0tATRbwZ5v
0OChL3GX/s9yvRsRcibuVqVnaHAoU+j8aAmTYm4MG5S7NGh6lolPaYMbrHGkVxfq
6hJrfNbHWVIx5HZ4GY2S
=2Sbv
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.