ID handling problem with DNS Forwarder host override management
When editing or deleting DNS Forwarder host entries, occasionally the ID numbers can get out of alignment, leading to making changes on the wrong item.
Fixed by PR https://github.com/pfsense/pfsense/pull/3966 which was merged a couple weeks ago
On 2.4.4 Fri Aug 17 21:29:09 EDT 2018
When testing host edit/delete actions with host overrides in dns forwarder was catching php warning when opening host entry to edit:
Warning: Illegal string offset 'item' in /usr/local/www/services_dnsmasq_edit.php on line 244 Warning: count(): Parameter must be an array or an object that implements Countable in /usr/local/www/services_dnsmasq_edit.php on line 249 Warning: Invalid argument supplied for foreach() in /usr/local/www/services_dnsmasq_edit.php on line 251
#2 Updated by Azamat Khakimyanov 11 months ago
I tried to reproduce this issue on 2.4.2:
- I added more then 120 DNS Forwarder host overrides
- I didn't see issue when I pressed Edit button
- but I did see issue when I deleted one of the host override. But it only happens when you try to delete just after you've added more then 1 host override.
I wasn't able to reproduce this issue on 2.4.3_p1 and on 2.4.4.a.20180826.1232.