[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



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 <ijackson@chiark.greenend.org.uk>" {}date=1420469821 {}blocks="" {}fixed_date=[] {}log_modified=1436360961 {}found_date=[] {}blockedby="" {}summary="" {}keywords="" {}archived=0 {}source="dgit" {}done="Ian Jackson <ijackson@chiark.greenend.org.uk>" {}id=774628 {}tags="" {}package="dgit" {}msgid="<21674.42326.891976.60160@chiark.greenend.org.uk>" {}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

Attachment: pgpYrE4W0Vtd7.pgp
Description: PGP signature


Reply to: