BIND 10 #2715: bindclt bails out on non ASCII characters
BIND 10 Development
do-not-reply at isc.org
Tue Feb 12 11:00:17 UTC 2013
#2715: bindclt bails out on non ASCII characters
----------------------------------+----------------------------------------
Reporter: cas | Type: defect
Status: new | Priority: medium
Milestone: New Tasks | Component: bind-ctl
Keywords: | CVSS Scoring:
Sensitive: 0 | Defect Severity: Medium
Sub-Project: DNS | Feature Depending on Ticket:
Estimated Difficulty: 0 | Add Hours to Ticket: 0
Total Hours: 0 | Internal?: 0
----------------------------------+----------------------------------------
bindclt bails out on non ascii characters (german Umlauts, French acute
...)
It happens during login or on the command-line. It can be triggered by a
user having non-ascii chars in the password or by mistyping on the
keyboard.
bindclt should gracefully handle UTF-8 input.
Error message (password):
{{{
[root at inline bind10]# bindctl
Error reading saved username and password from
/root/.bind10/default_user.csv: [Errno 2] No such file or directory:
'/root/.bind10/default_user.csv'
[TEMP MESSAGE]: username :root password :bind10
Username:root
Password: Traceback (most recent call last):
File "/usr/local/bin/bindctl", line 162, in <module>
result = tool.run()
File "/usr/local/lib/python3.3/site-packages/bindctl/bindcmd.py", line
149, in run
if not self.login_to_cmdctl():
File "/usr/local/lib/python3.3/site-packages/bindctl/bindcmd.py", line
242, in login_to_cmdctl
passwd = getpass.getpass()
File "/usr/local/lib/python3.3/getpass.py", line 71, in unix_getpass
passwd = _raw_input(prompt, stream, input=input)
File "/usr/local/lib/python3.3/getpass.py", line 132, in _raw_input
line = input.readline()
File "/usr/local/lib/python3.3/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 0:
ordinal not in range(128)
}}}
Error message CLI:
{{{
[root at inline bind10]# bindctl
Error reading saved username and password from
/root/.bind10/default_user.csv: [Errno 2] No such file or directory:
'/root/.bind10/default_user.csv'
[TEMP MESSAGE]: username :root password :bind10
Username:root
Password:
["login success "]
> help¿
Traceback (most recent call last):
File "/usr/local/bin/bindctl", line 162, in <module>
result = tool.run()
File "/usr/local/lib/python3.3/site-packages/bindctl/bindcmd.py", line
152, in run
self.cmdloop()
File "/usr/local/lib/python3.3/cmd.py", line 126, in cmdloop
line = input(self.prompt)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 4:
ordinal not in range(128)
}}}
--
Ticket URL: <http://bind10.isc.org/ticket/2715>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list