Bug#794117: gosa-plugin-dhcp: It is impossible to add/insert sections and subsections to the DHCP service configuration

Mike Gabriel mike.gabriel at das-netzwerkteam.de
Thu Jul 30 17:42:43 UTC 2015


Package: gosa-plugin-dhcp
Severity: important
Version: 2.7.4+reloaded2-2
User: debian-edu at lists.debian.org
Usertags: debian-edu
X-Debbugs-Cc: debian-edu at lists.debian.org

A while ago I had noticed that there is a regression in GOsa 2.7's DHCP service plugin compared to GOsa 2.6.

In gosa-plugin-service 2.7 in combination with php in jessie and stretch (the issue also existed in wheezy IIIRC) it is not possible to insert DHCP subsections anymore. This makes the DHCP plugin hardly usable (as you cannot populate the DHCP server configuration with config sections and subsections.

Today I finally looked at this issue and found out that the reason lies in the image() function in gosa-core/include/functions.inc.

The icon for inserting new sections simply does not get rendered as the rendering fails due to a failing preg_match() call when stripping off href labels from image filename (e.g., "images/element.png[new]"). If that label in the square brackets does not get used in class_servDhcpd.inc, then it is possible to properly configure the DHCPd service again via the gosa-plugin-dhcp.

I will come up with a patch for this tomorrow.

Greets,
Mike




-- 

DAS-NETZWERKTEAM
mike gabriel, herweg 7, 24357 fleckeby
fon: +49 (1520) 1976148

GnuPG Key ID 0x25771B13
mail: mike.gabriel at das-netzwerkteam.de, http://das-netzwerkteam.de



More information about the Debian-edu-pkg-team mailing list