Actions
Regression #13661
closed
RL
RL
Feature #13446: Upgrade PHP from 7.4 to 8.1
Input validation issues on firewall_shaper.php
Regression #13661:
Input validation issues on firewall_shaper.php
Status:
Resolved
Priority:
Normal
Assignee:
Category:
Traffic Shaper (ALTQ)
Target version:
Start date:
Due date:
% Done:
100%
Estimated time:
Plus Target Version:
23.01
Release Notes:
Force Exclusion
Affected Version:
Affected Architecture:
Description
On the firewall_shaper.php page, when I create a new shaper without setting a bandwidth I see this error:
Fatal error: Uncaught TypeError: Unsupported operand types: string * int in /etc/inc/shaper.inc:762
Stack trace:
#0 /etc/inc/shaper.inc(809): altq_root_queue->CheckBandwidth('', 'Mb')
#1 /usr/local/www/firewall_shaper.php(219): altq_root_queue->validate_input(Array, Array)
#2 {main}
thrown in /etc/inc/shaper.inc on line 762
PHP ERROR: Type: 1, File: /etc/inc/shaper.inc, Line: 762, Message: Uncaught TypeError: Unsupported operand types: string * int in /etc/inc/shaper.inc:762
Stack trace:
#0 /etc/inc/shaper.inc(809): altq_root_queue->CheckBandwidth('', 'Mb')
#1 /usr/local/www/firewall_shaper.php(219): altq_root_queue->validate_input(Array, Array)
#2 {main}
thrown
Also, on the same page it is not possible to create one with CODELQ, as it both requires and disallows Qlimit in that case.
RL Updated by Reid Linnemann almost 4 years ago
- Description updated (diff)
RL Updated by Reid Linnemann almost 4 years ago
- Status changed from Confirmed to Feedback
- % Done changed from 0 to 100
Applied in changeset commit:b1972170a9d4bbc12ca6e35f861980f7d4b0d525.
JP Updated by Jim Pingle almost 4 years ago
- Release Notes changed from Default to Force Exclusion
- Tracker changed from Bug to Regression
DZ Updated by Danilo Zrenjanin almost 4 years ago
- Status changed from Feedback to Resolved
Tested against:
23.01-DEVELOPMENT (amd64) built on Fri Dec 09 06:12:49 UTC 2022 FreeBSD 14.0-CURRENT
There were no PHP errors when I defined a new shaper without setting a bandwidth. The warning text appeared as expected:
The following input errors were detected: Bandwidth must be set. This is usually the interface speed.
Actions