Invalid index name in attribute array
Created by: pdav
Bug also reported by danlii (see issue #125 (closed))
utils/dnsmodattr attempts to use an invalid index name (bug detected by Emmanuel Dollé emmanuel.dolle@agrocampus-ouest.fr):
From: Emmanuel Dollé <emmanuel.dolle@agrocampus-ouest.fr>
To: netmagis@freelists.org
Subject: [netmagis] Problem to change DHCP profile with dnsmodattr.
Date: Mon, 04 Aug 2014 16:35:43 +0200
Hi,
When I try to change the DHCP profile of one host with dnsmodattr
program, I have the error below with Netmagis 2.2.2 on Debian 7.5 :
# dnsmodattr machine2test.mydomain.fr default DHCPPROFILE "test"
can't read "tattr(dhcpprofil)": no such element in array
while executing
"set newiddhcpprof $tattr(dhcpprofil)"
(procedure "update-rr" line 69)
invoked from within
"update-rr $dbfd trr $idview tabattr"
(procedure "main" line 84)
invoked from within
"main $argv0 $argv"
invoked from within
"exit [main $argv0 $argv]"
(file "/usr/bin/dnsmodattr" line 313)
For information, I use dnsmodattr for change other attributes without
problem and changing DHCP profile with the web interface works.
Thanks in advance for your help.