Bug 689794
Summary: | ctrl+c does not work during python getpass.getpass() (was: Unable to terminate sss_obfuscate) | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Kaushik Banerjee <kbanerje> |
Component: | python | Assignee: | Dave Malcolm <dmalcolm> |
Status: | CLOSED ERRATA | QA Contact: | Petr Šplíchal <psplicha> |
Severity: | unspecified | Docs Contact: | |
Priority: | medium | ||
Version: | 6.1 | CC: | dpal, grajaiya, jgalipea, ohudlick, prc, psplicha, sgallagh, syeghiay |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | python-2.6.6-21.el6 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2011-12-06 10:24:06 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Kaushik Banerjee
2011-03-22 13:26:36 UTC
The ctrl+c issue is a python bug being tracked here: http://bugs.python.org/issue11236 Also, I don't know whether I consider the traceback from ctrl+d to be a bug. You're not supposed to force an EOF in that function. It triggers completion based on a newline. Throwing a traceback seems like an appropriate behavior. Please suggest an appropriate error message if you want me to at least override this. The basic issue here is that, at the moment, user cannot interrupt the sss_obfuscate command and only ctrl+d with traceback messages work. Maybe we can add a exception with the message "Password change aborted"? Also, there is no limit on maximum retries either. We should set a limit of maximum 3 retries on mis-matched passwords. Logged a second bug https://bugzilla.redhat.com/show_bug.cgi?id=690131 to track the issue related to ctrl+d and leave this bug to track the ctrl+c issue. The ctrl+c issue is a python bug as mentioned in the above comments. It is the same issue as reported in http://bugs.python.org/issue11236 Reassigning to the Python maintainer. Since RHEL 6.1 External Beta has begun, and this bug remains unresolved, it has been rejected as it is not proposed as exception or blocker. Red Hat invites you to ask your support representative to propose this request, if appropriate and relevant, in the next release of Red Hat Enterprise Linux. Patch is upstream, albeit not for 2.6; 2.7 version is here: http://hg.python.org/cpython/rev/a3b4887edba4/ Easy manual reproducer: python -c"import getpass; print(repr(getpass.getpass('-> ')))" and try to press either ctrl-Z or ctrl-C. Currently, nothing happens, and you need to press "return" to finish; the returned string contains '\x03' or '\x1a' (or press Ctrl-D, which raises a EOFError exception). Upon applying the patch, Ctrl-C raises a KeyboardInterupt, and Ctrl-Z backgrounds the task. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2011-1564.html |