WillyXJ / facileManager

A modular suite of web apps built with the sysadmin in mind.
www.facilemanager.com
GNU General Public License v2.0
88 stars 37 forks source link

[BUG] Create PTR option causes fatal error: Uncaught Error: [] operator not supported for strings #613

Closed imyller closed 6 months ago

imyller commented 7 months ago

fM Version : 4.6.1 fmDNS Version : 6.0.3

In raising this issue, I confirm the following (please check boxes, eg [X]):


(BUG | ISSUE) Expected Behavior:

Operation succeeeds and forward A record is created.

(If reverse zone is not already created it can either be created or Create PTR option will be ignored with warning?)

(BUG | ISSUE) Actual Behavior:

Fatal error: Uncaught Error: [] operator not supported for strings in /var/www/facileManager/fm-modules/fmDNS/classes/class_zones.php:1850 Stack trace: #0 /var/www/facileManager/fm-modules/fmDNS/classes/class_zones.php(126): fm_dns_zones->validatePost() #1 /var/www/facileManager/fm-modules/fmDNS/functions.php(1312): fm_dns_zones->add() #2 /var/www/facileManager/fm-modules/fmDNS/functions.php(1272): autoCreatePTRZone() #3 /var/www/facileManager/fm-modules/fmDNS/pages/zone-records-validate.php(250): checkPTRZone() #4 /var/www/facileManager/fm-modules/fmDNS/pages/zone-records-validate.php(141): validateEntry() #5 /var/www/facileManager/fm-modules/fmDNS/pages/zone-records-validate.php(69): createOutput() #6 /var/www/facileManager/index.php(57): include('...') #7 {main} thrown in /var/www/facileManager/fm-modules/fmDNS/classes/class_zones.php on line 1850

(BUG | ISSUE) Steps to reproduce:

(without Show errors setting, UI responds with blank page and silent http/500)

WillyXJ commented 6 months ago

This is now fixed in fmDNS 6.0.4 and later.