New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid index name in attribute array #131

Closed
pdav opened this Issue Aug 18, 2014 · 2 comments

Comments

Projects
None yet
1 participant
@pdav
Collaborator

pdav commented Aug 18, 2014

Bug also reported by danlii (see issue #125)

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.

@pdav pdav added this to the v2.2.3 milestone Aug 18, 2014

@pdav pdav self-assigned this Aug 18, 2014

@pdav

This comment has been minimized.

Show comment
Hide comment
@pdav

pdav Aug 18, 2014

Collaborator

Bug fix by Julien Soula (julien.soula@univ-lille2.fr)

From: julien soula <julien.soula@univ-lille2.fr>
To: netmagis@freelists.org
Subject: [netmagis] Re: Problem to change DHCP profile with dnsmodattr.
Date: Mon, 4 Aug 2014 17:12:37 +0200

[...]

just replace "dhcpprofil" with "dhcpprofile" in line 134
Collaborator

pdav commented Aug 18, 2014

Bug fix by Julien Soula (julien.soula@univ-lille2.fr)

From: julien soula <julien.soula@univ-lille2.fr>
To: netmagis@freelists.org
Subject: [netmagis] Re: Problem to change DHCP profile with dnsmodattr.
Date: Mon, 4 Aug 2014 17:12:37 +0200

[...]

just replace "dhcpprofil" with "dhcpprofile" in line 134

@pdav pdav added the bug label Aug 18, 2014

@pdav

This comment has been minimized.

Show comment
Hide comment
@pdav

pdav Aug 18, 2014

Collaborator

Closed by commit 811901e

Collaborator

pdav commented Aug 18, 2014

Closed by commit 811901e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment