BIND 10 #1515: crash bindctl with "config add Auth/datasources[0]/zones" twice

BIND 10 Development do-not-reply at isc.org
Mon Dec 19 19:05:42 UTC 2011


#1515: crash bindctl with "config add Auth/datasources[0]/zones" twice
---------------------------------+-----------------------------------------
            Reporter:  jreed     |                        Owner:
                Type:  defect    |                       Status:  new
            Priority:  major     |                    Milestone:  New Tasks
           Component:  bind-ctl  |                     Keywords:
           Sensitive:  0         |              Defect Severity:  N/A
         Sub-Project:  DNS       |  Feature Depending on Ticket:
Estimated Difficulty:  0         |          Add Hours to Ticket:  0
         Total Hours:  0         |                    Internal?:  0
---------------------------------+-----------------------------------------
 I did:

 {{{

 > config add Auth/datasources
 > config show Auth/datasources
 Auth/datasources[0]/type        ""      string  (default)
 Auth/datasources[0]/class       "IN"    string  (default)
 Auth/datasources[0]/zones       []      list    (default)
 > config set Auth/datasources[0]/type "memory"
 > config add Auth/datasources[0]/zones
 > config add Auth/datasources[0]/zones
 Traceback (most recent call last):
   File "/usr/local/lib/python3.1/cmd.py", line 213, 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 "/usr/local/bin/bindctl", line 149, in <module>
     result = tool.run()
   File "/usr/local/lib/python3.1/site-packages/bindctl/bindcmd.py", line
 138, in run
     self.cmdloop()
   File "/usr/local/lib/python3.1/cmd.py", line 139, in cmdloop
     stop = self.onecmd(line)
   File "/usr/local/lib/python3.1/site-packages/bindctl/bindcmd.py", line
 466, in onecmd
     Cmd.onecmd(self, line)
   File "/usr/local/lib/python3.1/cmd.py", line 215, in onecmd
     return self.default(line)
   File "/usr/local/lib/python3.1/site-packages/bindctl/bindcmd.py", line
 432, in default
     self._parse_cmd(line)
   File "/usr/local/lib/python3.1/site-packages/bindctl/bindcmd.py", line
 569, in _parse_cmd
     self._handle_cmd(cmd)
   File "/usr/local/lib/python3.1/site-packages/bindctl/bindcmd.py", line
 410, in _handle_cmd
     self.apply_config_cmd(cmd)
   File "/usr/local/lib/python3.1/site-packages/bindctl/bindcmd.py", line
 677, in apply_config_cmd
     cmd.params.get('value_for_set'))
   File "/usr/local/lib/python3.1/site-packages/isc/config/ccsession.py",
 line 503, in add_value
     self._add_value_to_list(identifier, value, module_spec)
   File "/usr/local/lib/python3.1/site-packages/isc/config/ccsession.py",
 line 456, in _add_value_to_list
     + identifier)
 TypeError: unsupported operand type(s) for +: 'dict' and 'str'

 }}}

 I purposely added twice as I planned to add two zones.

 This is bind10-devel-20111128 installed from port on FreeBSD.

-- 
Ticket URL: <http://bind10.isc.org/ticket/1515>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development


More information about the bind10-tickets mailing list