Project

General

Profile

Actions

Bug #9083

closed

Config upgrade issue with empty IPsec P1

Added by Jim Pingle over 5 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Upgrade
Target version:
Start date:
10/31/2018
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.4.4
Affected Architecture:
All

Description

An older configuration will fail to upgrade with an incomplete or empty IPsec Phase 1 section:

    <ipsec>
        <phase1></phase1>
        <logging>
            [...]
        </logging>
    </ipsec>

This generates a PHP error during the upgrade process, which then fails:

Fatal error: Uncaught Error: Cannot use string offset as an array in /etc/inc/upgrade_config.inc:5502
Stack trace:
#0 /etc/inc/config.lib.inc(378): upgrade_174_to_175()
#1 /etc/rc.bootup(125): convert_config()
#2 {main}
  thrown in /etc/inc/upgrade_config.inc on line 5502

Actions

Also available in: Atom PDF