You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like this is happening due to the type inference for URL parameters added in feebe80. It's comparing an integer 80 from the request to a string "80" from the pfSense config. This would effect most numeric fields and boolean fields. A work around in the meantime is to use JSON query parameters instead to force the types to match. For example:
Describe the bug
Some GET parameters works and others don't. (returns no data, even if there)
To Reproduce
Steps to reproduce the behavior:
curl --insecure -u admin:pfsense -X 'GET'
'https://pfsense.examp.net/api/v1/firewall/nat/port_forward/?local-port=80'
-H 'accept: application/json'
Expected behavior
I expected to get the port_forwards containing the GET parameter (?local-port=80)
Screenshots or Response
{"status":"ok","code":200,"return":0,"message":"Success","data":[]}
pfSense Version & Package Version:
Affected Endpoints:
Additional context
Works fine:
curl --insecure -u admin:pfsense -X 'GET'
'https://pfsense.examp.net/api/v1/firewall/nat/port_forward/?target=192.168.1.2'
-H 'accept: application/json'
The text was updated successfully, but these errors were encountered: