#1087362 how-can-i-help: /usr/bin/how-can-i-help script returns a "no implicit conversion" error

#1087362#5
Date:
2024-11-12 06:32:42 UTC
From:
To:
Dear Maintainer,

Running /usr/bin/how-can-i-help script at the end of upgrade returns a "no implicit
conversion" error.

/usr/bin/how-can-i-help:238:in `&': no implicit conversion of nil into Array (TypeError)
	from /usr/bin/how-can-i-help:238:in `block in <main>'
	from /usr/bin/how-can-i-help:215:in `each'
	from /usr/bin/how-can-i-help:215:in `<main>'

Regards,

Jean-Marc

#1087362#10
Date:
2024-11-12 06:59:32 UTC
From:
To:
Control: severity -1 serious
Control: tags -1 + confirmed

Can confirm, just running how-can-i-help standalone on trixie
produces this backtrace:

Raising severity, as it seems probably too buggy to ship as is.

Chris

#1087362#19
Date:
2024-11-12 11:58:05 UTC
From:
To:
Hi,

It seems that given helpitem's package data is empty.

{"type"=>"testing-autorm",
 "hash"=>"0eb6b1e5e7f22c5d6211adb3e29791d6",
 "source"=>"dhcpcanon",
 "packages"=>nil,
 "removal_time"=>1732643103,
 "bugs"=>["1084132"]}

So the following condition raises an error:

  if packages & hi['packages'] != []
     ...
  end

dhcpcanon was already removed from unstable and testing, and
also stable. It seems irregular case.

Regards,

#1087362#24
Date:
2024-11-12 12:06:18 UTC
From:
To:
Hi,

Something like this kind of patch will solve this issue:

diff -u /usr/bin/how-can-i-help how-can-i-help
--- /usr/bin/how-can-i-help	2024-05-13 04:10:39.000000000 +0900
+++ how-can-i-help	2024-11-12 21:04:29.011485104 +0900
@@ -235,6 +235,7 @@
       helpitems_filtered << hi
     end
   elsif hi['type'] == 'testing-autorm'
+    next unless hi['packages']
     if packages & hi['packages'] != []
       helpitems_filtered << hi
     end

Regards,

#1087362#29
Date:
2024-11-12 12:07:20 UTC
From:
To:
Control: found -1 17

Ditto. And in bookworm too.

#1087362#36
Date:
2024-11-12 12:07:21 UTC
From:
To:

I have same issue on bookworm

#1087362#41
Date:
2024-11-12 11:54:13 UTC
From:
To:
Dear Maintainer, I have the same issue on 17 version on stable

Running /usr/bin/how-can-i-help (17) script at the end of upgrade returns a "no implicit
conversion" error.

/usr/bin/how-can-i-help:238:in `&': no implicit conversion of nil into Array (TypeError)
	from /usr/bin/how-can-i-help:238:in `block in <main>'
	from /usr/bin/how-can-i-help:215:in `each'
	from /usr/bin/how-can-i-help:215:in `<main>'

Regards, mittwerk

#1087362#46
Date:
2024-11-12 12:04:10 UTC
From:
To:
Dear Maintainer,

have the same issue on bookworm

#1087362#51
Date:
2024-11-14 10:52:17 UTC
From:
To:
#1087362#56
Date:
2024-12-10 00:48:57 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
how-can-i-help, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1087362@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Tomasz Nitecki <tnnn@tnnn.pl> (supplier of updated how-can-i-help package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Tue, 10 Dec 2024 01:01:47 +0100
Source: how-can-i-help
Architecture: source
Version: 20
Distribution: unstable
Urgency: medium
Maintainer: Tomasz Nitecki <tnnn@tnnn.pl>
Changed-By: Tomasz Nitecki <tnnn@tnnn.pl>
Closes: 1087362
Changes:
 how-can-i-help (20) unstable; urgency=medium
 .
   [ Kentaro Hayashi ]
   * Fix no implicit conversion error. Closes: #1087362
Checksums-Sha1:
 8127cb115a929bc5d622aa9711b9894e7f18638e 1725 how-can-i-help_20.dsc
 64d9a164f31abd2cf9d096977cebcfc2079e03ef 10112 how-can-i-help_20.tar.xz
 d39ba9b8b886eba518b980eb8340e9941f8133db 9389 how-can-i-help_20_amd64.buildinfo
Checksums-Sha256:
 6474c4ed7f46d9e742451dbcd0fecec10b6b999de188a6674682b5f05ec129c8 1725 how-can-i-help_20.dsc
 132f2f19b4aa02e1ba389470d5612baf9564eaf88739beada552a3b954f61c50 10112 how-can-i-help_20.tar.xz
 b30f7be464f0ed938487a6e653b4b8297ec50dcdf142d4dc5c728cb41583089d 9389 how-can-i-help_20_amd64.buildinfo
Files:
 0db22d6f63873f90963dfdd915d995a7 1725 devel optional how-can-i-help_20.dsc
 6840806cf3db7c009e1cbfd812337101 10112 devel optional how-can-i-help_20.tar.xz
 b859d7c86fee8657d655606929b86e8c 9389 devel optional how-can-i-help_20_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJBBAEBCgArFiEEfAsN5+pZkhF7ovXM5scQ4uXB5KMFAmdXinQNHHRubm5AdG5u
bi5wbAAKCRDmxxDi5cHkoye7EACZDBm0rJz0824dvpW9PRnQYw5VZ/Vd7ve2xPRu
GyQSjYbPTJecf6H/DaJ33e04Ql1xRo7YS/TZ0EI+ZWwVKKedzlfglqR05LnzsSSF
M4VsDPR5qGB/Lvu9vVDDEe6EQUsBcCUhtXb+Uy3ODaYeNf1ngLXTDPBz46oWxjmT
H3SCLUWcAoH6NqWiBRNuFXuX8DgNsyIr8rRl4Bf6DhyYm/j8A/GUSN2TeUyCOWxE
uY1qUrBO1C70UmAH7/FyF3YPuYmCnOccBvqbDdvB4UqoyCiRXenhQX/0m52v0FWZ
fL3Y4RM9CB7MC2BzGDWTX5OrsHqIwNDNBHijyG6DwXxSxouTQJpVjZJPARkqjsdX
7/sdXvFs5tptUulDo/sL2d1yoWSADQd888wtaLd2pQd7bPzJPSgAKGaR5qVlkB33
1A9skfebzd93LLWY/y3ucuEWAniOCo9b9F4uSU7tl9CkuXYJzMY/SOfJcjfIDHjd
/ep5saqpeJuunvAhZ2lf0GPXTHKMgmnnaIv9pPIKfymemKhIPof9KuREnP56ksQI
cNXkzQQ11X2R8e633TwTULUfxN8lLLJTw8FYxR3XI36KB1LjsZlaUxh1gEJthev9
hFCVp6MfmUkqLR4oOPl8rhwTQkHoSwMnI5E7l4oADtC3O2756BtTVqqzD1iDrg/a
6VOcZg==
=swUP
-----END PGP SIGNATURE-----