Project

General

Profile

Bug #8792

OpenVPN wizard PHP error

Added by Jim Pingle 10 months ago. Updated 10 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
OpenVPN
Target version:
Start date:
08/16/2018
Due date:
% Done:

100%

Estimated time:
Affected Version:
2.4.4
Affected Architecture:
All

Description

In certain cases the OpenVPN wizard can result in a PHP error when selecting a server certificate:

PHP ERROR: Type: 1, File: /usr/local/www/wizards/openvpn_wizard.inc, Line: 246, Message: Uncaught Error: Cannot unset string offsets in /usr/local/www/wizards/openvpn_wizard.inc:246
Stack trace:
#0 /usr/local/www/wizard.php(114) : eval()'d code(1): step8_submitphpaction()
#1 /usr/local/www/wizard.php(114): eval()

vpn_wizard.png (84.3 KB) vpn_wizard.png Denis Karpushin, 08/18/2018 01:29 AM

Associated revisions

Revision 82a3d3e9 (diff)
Added by Jim Pingle 10 months ago

Do not blindly unset values that may not exist in OpenVPN wizard. Fixes #8792

History

#1 Updated by Jim Pingle 10 months ago

  • Status changed from New to In Progress

#2 Updated by Jim Pingle 10 months ago

  • Status changed from In Progress to Feedback
  • % Done changed from 0 to 100

#3 Updated by Denis Karpushin 10 months ago

Created bunch of tunnels with wizard. Used internal server certificates and faced no issue.

#4 Updated by Denis Karpushin 10 months ago

UPD.
If you create CA without Country Code (left it as NONE) and in wizard trying to create new server certificate, in the coutry code field ther is "internal-ca" string. See the image.

#5 Updated by Chris Macmahon 10 months ago

  • Status changed from Feedback to Resolved

Also available in: Atom PDF