[Bug 233005] net-mgmt/zabbix4-frontend should require phpXY-filter

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Nov 5 21:32:24 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=233005

            Bug ID: 233005
           Summary: net-mgmt/zabbix4-frontend should require phpXY-filter
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs at FreeBSD.org
          Reporter: freebsd-bugs at joe.mulloy.me
                CC: pg at pakhom.spb.ru
             Flags: maintainer-feedback?(pg at pakhom.spb.ru)
                CC: pg at pakhom.spb.ru

The user profile update code in net-mgmt/zabbix4-frontend requires the php
filter module which is part of the security/phpXY-filter port/package.
Installing this port/package resolves the issue. It should be added as a
dependency of zabbix4-frontend, and possibly older ports of Zabbix if it
affects them as well. I havn't tested it on them. I upgraded to Zabbix 4 and
wanted to use the dark theme and was unable to update my user profile.

Steps to reproduce.

1. Login to Zabbix
2. Click the user profile icon (Looks like a silhouette head and shoulders)
3. Click update
4. Get the below stack trace and profile is not updated.

Fatal error: Uncaught Error: Call to undefined function filter_var() in
/usr/local/www/zabbix4/include/classes/validators/CEmailValidator.php:35 Stack
trace: #0 /usr/local/www/zabbix4/include/classes/api/services/CUser.php(673):
CEmailValidator->validate('jdmulloy at gmail....') #1
/usr/local/www/zabbix4/include/classes/api/services/CUser.php(450):
CUser->validateMediaRecipients(Array, Array) #2
/usr/local/www/zabbix4/include/classes/api/services/CUser.php(316):
CUser->validateUpdate(Array, Array) #3
/usr/local/www/zabbix4/include/classes/api/clients/CLocalApiClient.php(123):
CUser->update(Array) #4
/usr/local/www/zabbix4/include/classes/api/wrappers/CFrontendApiWrapper.php(97):
CLocalApiClient->callMethod('user', 'update', Array, '5fc4e351b8a5582...') #5
/usr/local/www/zabbix4/include/classes/api/wrappers/CApiWrapper.php(94):
CFrontendApiWrapper->callClientMethod('update', Array) #6
/usr/local/www/zabbix4/include/classes/api/wrappers/CFrontendApiWrapper.php(63):
CApiWrapper->callMethod('update', Array) #7 /usr/local/www/zab in
/usr/local/www/zabbix4/include/classes/validators/CEmailValidator.php on line
35

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list