Regression #13265
closedAuthentication using Voucher cause SQLite3 syntax error
100%
Description
Errors:
Crash report begins. Anonymous machine information:
amd64
12.3-STABLE
FreeBSD 12.3-STABLE plus-RELENG_22_05-n202695-c0ae69858ce pfSense
Crash report details:
PHP Errors:
[10-Jun-2022 15:35:17 Etc/UTC] PHP Warning: SQLite3::exec(): near ",": syntax error in /etc/inc/captiveportal.inc on line 1487
[10-Jun-2022 15:35:17 Etc/UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /etc/inc/captiveportal.inc:1487) in /etc/inc/captiveportal.inc on line 1797
[10-Jun-2022 15:35:18 Etc/UTC] PHP Warning: SQLite3::exec(): near ",": syntax error in /etc/inc/captiveportal.inc on line 1487
[10-Jun-2022 15:35:18 Etc/UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /etc/inc/captiveportal.inc:1487) in /etc/inc/captiveportal.inc on line 1797
____________________
Steps to reproduce:
1)Create a captive portal with a Local Database backed
2)Enable Voucher
3)Add Voucher rolls
4)Use the Voucher code for authentication
Files
Updated by Kris Phillips over 2 years ago
I can confirm this issue is present in the RC3 build of 22.05.
Updated by Kris Phillips over 2 years ago
Here is the crash report from my firewall:
Crash report begins. Anonymous machine information:
amd64
12.3-STABLE
FreeBSD 12.3-STABLE plus-RELENG_22_05-n202695-c0ae69858ce pfSense
Crash report details:
PHP Errors:
[11-Jun-2022 22:40:02 Etc/UTC] PHP Warning: SQLite3::exec(): near ",": syntax error in /etc/inc/captiveportal.inc on line 1487
[11-Jun-2022 22:40:02 Etc/UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /etc/inc/captiveportal.inc:1487) in /etc/inc/captiveportal.inc on line 1797
[11-Jun-2022 22:40:02 Etc/UTC] PHP Warning: SQLite3::exec(): near ",": syntax error in /etc/inc/captiveportal.inc on line 1487
[11-Jun-2022 22:40:02 Etc/UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /etc/inc/captiveportal.inc:1487) in /etc/inc/captiveportal.inc on line 1797
No FreeBSD crash data found.
Updated by Jim Pingle over 2 years ago
- Project changed from pfSense Plus to pfSense
- Category changed from Captive Portal to Captive Portal
- Status changed from New to In Progress
- Assignee set to Jim Pingle
- Priority changed from Normal to Urgent
- Target version changed from 22.05 to 2.7.0
- Affected Plus Version deleted (
22.05) - Plus Target Version set to 22.05
It should be noted that the authentication succeeds and the user can get out, is listed on the active vouchers tab, but not the active users tab.
Looking at the failing query, the place for `pipeno` in the query is missing -- not ''
but nothing at all , ,
.
Formatted for ease of reading:
INSERT INTO captiveportal (allow_time, pipeno, ip, mac, username, sessionid, bpassword, session_timeout, idle_timeout, session_terminate_time, interim_interval, traffic_quota, bw_up, bw_down, authmethod, context) VALUES (1655125710, , '10.7.0.10', '5e:13:3b:xx:xx:xx', 'nY3DVGQGHmJ', '8046d076f48c1dad', '', 3600, NULL, NULL, NULL, NULL, 0, 0, 'voucher', 'voucher')
Updated by Jim Pingle over 2 years ago
- Tracker changed from Bug to Regression
- Release Notes changed from Default to Force Exclusion
Updated by Jim Pingle over 2 years ago
- Status changed from In Progress to Feedback
- % Done changed from 0 to 100
Applied in changeset 8ba70cfcf6c86db2c52577bf543a6b72fc2da9e7.
Updated by Jim Pingle over 2 years ago
Merged into Plus and CE master branches and picked back into 22.05.
Updated by Jim Pingle over 2 years ago
- Status changed from Feedback to Resolved
No errors on the latest snapshot. Voucher is accepted, no PHP error, voucher shows in active users and active vouchers tab as expected.