Bug #15385
closed
PHP crash when exporting Apple profile, while IPsec P1 authentication method set to "Mutual Certificate"
Added by Craig Coonrad 8 months ago.
Updated about 1 month ago.
Category:
IPsec Profile Wizard
Plus Target Version:
24.11
Description
Version: 23.09.1-RELEASE (amd64)
Steps to reproduce:
1. Configure the Phase 1 authentication method to "Mutual Certificate"
2. Navigate to VPN --> IPsec Export: Apple Profile
3. Click "Download"
Screencap and PHP log attached.
Files
I can replicate this issue.
Tested against:
24.03-RELEASE (amd64)
built on Wed Apr 24 17:38:00 UTC 2024
FreeBSD 15.0-CURRENT
Crash report begins. Anonymous machine information:
amd64
15.0-CURRENT
FreeBSD 15.0-CURRENT #0 plus-RELENG_24_03-n256311-e71f834dd81: Fri Apr 19 00:28:14 UTC 2024 root@freebsd:/var/jenkins/workspace/pfSense-Plus-snapshots-24_03-main/obj/amd64/Y4MAEJ2R/var/jenkins/workspace/pfSense-Plus-snapshots-24_03-main/sources/FreeBS
Crash report details:
PHP Errors:
[11-May-2024 07:35:56 Etc/UTC] PHP Fatal error: Uncaught TypeError: base64_encode(): Argument #1 ($string) must be of type string, array given in /usr/local/pkg/ipsec-profile.inc:1649
Stack trace:
#0 /usr/local/pkg/ipsec-profile.inc(1649): base64_encode()
#1 /usr/local/pkg/ipsec-profile.inc(1274): iep_generate_ike()
#2 /usr/local/pkg/ipsec-profile.inc(1870): iep_generate_vpn()
#3 /usr/local/pkg/ipsec-profile.inc(1928): iep_generate_payload()
#4 /usr/local/www/vpn_ipsec_profile.php(130): iep_generate_profile()
#5 {main}
thrown in /usr/local/pkg/ipsec-profile.inc on line 1649
No FreeBSD crash data found.
- Status changed from Confirmed to Pull Request Review
- Assignee set to Marcos M
- Plus Target Version set to 24.08
Tested on ipsec-profile-wizard version 1.2.3 on
24.08-DEVELOPMENT (amd64)
built on Tue Jul 2 9:00:00 MSK 2024
FreeBSD 15.0-CURRENT
No crashes, it fixed.
- Status changed from Pull Request Review to Resolved
- % Done changed from 0 to 100
- Plus Target Version changed from 24.08 to 24.11
Also available in: Atom
PDF