BIND 10 #2485: bindctl crash on show of removed item
BIND 10 Development
do-not-reply at isc.org
Mon Jan 7 09:59:11 UTC 2013
#2485: bindctl crash on show of removed item
---------------------------------+--------------------------------------
Reporter: jreed | Owner:
Type: defect | Status: new
Priority: medium | Milestone:
Component: bind-ctl | Resolution:
Keywords: | CVSS Scoring:
Sensitive: 0 | Defect Severity: Medium
Sub-Project: Core | Feature Depending on Ticket:
Estimated Difficulty: 5 | Add Hours to Ticket: 0
Total Hours: 0 | Internal?: 0
---------------------------------+--------------------------------------
Comment (by naokikambe):
Our operator seemed to hit the same issue while testing. He just tried to
show an unassigned index in an array as following.
{{{
> config show data_sources/classes/IN
data_sources/classes/IN[0]/type "sqlite3" string (default)
data_sources/classes/IN[0]/params {"database_file":
"/home/kambe/bind10/var/bind10/zone.sqlite3"} any (defaul\
t)
data_sources/classes/IN[0]/cache-enable false boolean (default)
data_sources/classes/IN[0]/cache-zones/ list
> config show data_sources/classes/IN[1]
Traceback (most recent call last):
File "/usr/local/lib/python3.2/cmd.py", line 212, in onecmd
func = getattr(self, 'do_' + cmd)
AttributeError: 'BindCmdInterpreter' object has no attribute 'do_config'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/kambe/bind10/bin/bindctl", line 162, in <module>
result = tool.run()
File "/home/kambe/bind10/lib/python3.2/site-
packages/bindctl/bindcmd.py", line 152, in run
self.cmdloop()
File "/usr/local/lib/python3.2/cmd.py", line 138, in cmdloop
stop = self.onecmd(line)
File "/home/kambe/bind10/lib/python3.2/site-
packages/bindctl/bindcmd.py", line 476, in onecmd
Cmd.onecmd(self, line)
File "/usr/local/lib/python3.2/cmd.py", line 214, in onecmd
return self.default(line)
File "/home/kambe/bind10/lib/python3.2/site-
packages/bindctl/bindcmd.py", line 442, in default
self._parse_cmd(line)
File "/home/kambe/bind10/lib/python3.2/site-
packages/bindctl/bindcmd.py", line 639, in _parse_cmd
self._handle_cmd(cmd)
File "/home/kambe/bind10/lib/python3.2/site-
packages/bindctl/bindcmd.py", line 426, in _handle_cmd
self.apply_config_cmd(cmd)
File "/home/kambe/bind10/lib/python3.2/site-
packages/bindctl/bindcmd.py", line 719, in apply_config_cmd
values = self.config_data.get_value_maps(identifier, show_all)
File "/home/kambe/bind10/lib/python3.2/site-
packages/isc/config/config_data.py", line 723, in get_value_maps
self._append_value_item(result, spec_part, identifier, all, True)
File "/home/kambe/bind10/lib/python3.2/site-
packages/isc/config/config_data.py", line 630, in _append_value_item
list_value, status = self.get_value(identifier)
File "/home/kambe/bind10/lib/python3.2/site-
packages/isc/config/config_data.py", line 603, in get_value
value = self.get_default_value(identifier)
File "/home/kambe/bind10/lib/python3.2/site-
packages/isc/config/config_data.py", line 522, in get_default_value
result = result[list_indices.pop(0)]
IndexError: list index out of range
}}}
--
Ticket URL: <http://bind10.isc.org/ticket/2485#comment:3>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list