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

Bug#923631: reportbug: Crashes when filing a cruft RM request for a non-existent package (after confirmed that the user intended for it to be unknown)



Package: reportbug
Version: 7.5.2
Severity: minor

Hi,

I can reproduce a crash in reportbug when asking to file a bug against
ftp.debian.org asking to remove a non-existent package (e.g. if you
list multiple binaries or cheat an use "<common-prefix>-*").

Just before the crash, reportbug asks you to confirm that the
non-existant package is deliberate and that we should continue anyway.

Below is an example flow with the crash.

"""
$ reportbug ftp.debian.org
*** Welcome to reportbug.  Use ? for help at prompts. ***
Note: bug reports are publicly archived (including the email address of the submitter).
Detected character set: UTF-8
Please change your locale if this is incorrect.

Using 'Niels Thykier <niels@thykier.net>' as your from address.
Will send report to Debian (per lsb_release).
What sort of request is this? (If none of these things mean anything to you, or you are trying to report a bug in an existing package, please press Enter to exit
reportbug.)

 1 ANAIS     Package removal - Architecture Not Allowed In Source.
 2 ICE       Package removal - Internal Compiler Error.
 3 NBS       Package removal - Not Built [by] Source.
 4 NPOASR    Package removal - Never Part Of A Stable Release.
 5 NVIU      Package removal - Newer Version In Unstable.
 6 ROM       Package removal - Request Of Maintainer.
 7 ROP       Package removal - Request of Porter.
 8 RoQA      Package removal - Requested by the QA team.
 9 other     Not a package removal request, report other problems.
10 override  Change override request.

Choose the request type: 3
Please enter the name of the package (either source of binary package): foo
Checking status database...
W: Unable to locate package foo
This package doesn't appear to exist; continue? [y|N|?]? y
Traceback (most recent call last):
  File "/usr/bin/reportbug", line 2285, in <module>
    main()
  File "/usr/bin/reportbug", line 1115, in main
    return iface.user_interface()
  File "/usr/bin/reportbug", line 1705, in user_interface
    self.options.http_proxy)
  File "/usr/bin/reportbug", line 543, in special_prompts
    return pkgprompts(package, bts, ui, fromaddr, timeout, online, http_proxy)
  File "/usr/lib/python3/dist-packages/reportbug/debbugs.py", line 265, in handle_debian_ftp
    section, priority = info[16], info[10]
IndexError: list index out of range
"""

Thanks,
~Niels


Reply to: