ndejong / pfsense_fauxapi

REST based API interface for pfSense 2.3.x and 2.4.x to facilitate devops
Apache License 2.0
354 stars 61 forks source link

PFSense 2.4.4 Potential Issues #37

Closed samypr100 closed 6 years ago

samypr100 commented 6 years ago

Recently upgraded PFSense to 2.4.4 and started getting the following exception using faux v1.3.3:

Fatal error: Uncaught Error: Call to undefined function fauxapi\v1\split() in /etc/inc/fauxapi/fauxapi_auth.inc:48
Stack trace: #0 /etc/inc/fauxapi/fauxapi.inc(131): fauxapi\v1\fauxApiAuth->is_authenticated() 
#1 /etc/inc/fauxapi/fauxapi.inc(63): fauxapi\v1\fauxApi->__check_user_action_call(Object(fauxapi\v1\fauxApiActions), 'config_get', Array, '')
#2 /usr/local/www/fauxapi/v1/index.php(32): fauxapi\v1\fauxApi->__call('config_get', Array)
#3 {main} thrown in /etc/inc/fauxapi/fauxapi_auth.inc on line 48 PHP ERROR: Type: 1, File: /etc/inc/fauxapi/fauxapi_auth.inc, Line: 48,
Message: Uncaught Error: Call to undefined function fauxapi\v1\split() in /etc/inc/fauxapi/fauxapi_auth.inc:48
Stack trace: #0 /etc/inc/fauxapi/fauxapi.inc(131): fauxapi\v1\fauxApiAuth->is_authenticated() 
#1 /etc/inc/fauxapi/fauxapi.inc(63): fauxapi\v1\fauxApi->__check_user_action_call(Object(fauxapi\v1\fauxApiActions), 'config_get', Array, '')
#2 /usr/local/www/fauxapi/v1/index.php(32): fauxapi\v1\fauxApi->__call('config_get', Array)
#3 {main} thrown
ndejong commented 6 years ago

Hi @samypr100 - yes this was picked up and corrected yesterday in https://github.com/ndejong/pfsense_fauxapi/pull/35 - the issue is the use of a legacy PHP function split() - new FauxAPI package coming shortly

samypr100 commented 6 years ago

Sorry, I didn't see an issue and decided to create one. I didn't noticed an MR already fixed it. 👍

ndejong commented 6 years ago

I appreciate the report all the same - new package release v1.3_4 resolves this