group.of.nepali.translators team mailing list archive
-
group.of.nepali.translators team
-
Mailing list archive
-
Message #19862
[Bug 1722564] Re: apport question will not accept multi-character responses
This bug was fixed in the package apport - 2.20.1-0ubuntu2.14
---------------
apport (2.20.1-0ubuntu2.14) xenial; urgency=medium
* bin/apport-cli: read until <enter> instead of a single character when # of
apport options is non-unique with a single character. Thanks to Chad Smith
for the patch. (LP: #1722564)
-- Brian Murray <brian@xxxxxxxxxx> Mon, 27 Nov 2017 15:26:00 -0800
** Changed in: apport (Ubuntu Xenial)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1722564
Title:
apport question will not accept multi-character responses
Status in Apport:
Confirmed
Status in apport package in Ubuntu:
Fix Released
Status in apport source package in Xenial:
Fix Released
Status in apport source package in Zesty:
Fix Released
Status in apport source package in Artful:
Fix Released
Bug description:
=== Begin SRU Template ===
[Impact]
Packages which provide apport integration with more than 9 options in a choice will not be able to select options numbered >= 10 on the commandline using 'ubuntu-bug <package-name>'
[Test Case]
Overview:
1. Update to proposed versions of cloud-init v. 17.1 and apport v. <X>
2. Run 'ubuntu-bug cloud-init' attempt to report a bug on a cloud choice greater than 9
3. View report and make sure the proper cloud is reported
Script:
if [ ! -f './lxc-proposed-snapshot' ]; then
wget https://raw.githubusercontent.com/cloud-init/ubuntu-sru/master/bin/lxc-proposed-snapshot;
chmod 755 lxc-proposed-snapshot;
fi
for release in xenial artful; do
ref=$release-proposed;
echo "$release START --------------";
lxc-proposed-snapshot --proposed --publish $release $ref;
lxc init $ref test-$release;
lxc start test-$release;
lxc exec test-$release -- apt install apport;
lxc exec test-$release -- dpkg-query --show apport;
lxc exec test-$release -- ubuntu-bug cloud-init;
done
[Regression Potential]
Minimal. This bug only affects packages with >9 bug filing options for a given choice. Worst case, is bugs filed would incorrectly represent option 1 of a selection instead of option 1X.
=== End SRU Template ===
=== original description ===
the newly added cloud-init apport support shows a list of cloud providers and asks the user to select one. There are currently 18 options. For any option > 10, apport will just take the '1' that is typed as the answer.
It should obviously wait for more than one character or a carriage
return.
*** Please select the cloud vendor or environment in which this
instance is running
Choices:
1: Amazon - Ec2
2: AliYun
3: AltCloud
4: Azure
5: Bigstep
6: CloudSigma
7: CloudStack
8: DigitalOcean
9: GCE - Google Compute Engine
10: MAAS
11: NoCloud
12: OpenNebula
13: OpenStack
14: OVF
15: Scaleway
16: SmartOS
17: VMware
18: Other
C: Cancel
Please choose (1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/C): 1
ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: apport 2.20.7-0ubuntu2
ProcVersionSignature: Ubuntu 4.13.0-12.13-generic 4.13.3
Uname: Linux 4.13.0-12-generic x86_64
ApportVersion: 2.20.7-0ubuntu2
Architecture: amd64
Date: Tue Oct 10 15:21:48 2017
PackageArchitecture: all
ProcEnviron:
TERM=xterm-256color
PATH=(custom, no user)
LANG=C.UTF-8
SourcePackage: apport
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/apport/+bug/1722564/+subscriptions