Project

General

Profile

Actions

Bug #9069

closed

Config import not validated properly

Added by Flole Systems over 5 years ago. Updated over 5 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
10/25/2018
Due date:
% Done:

0%

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

Description

I just imported a config file generated on another pfsense host onto a fresh install. Somehow that file ended up containing two rrdata elements (not entirely sure where those came from). Now the entire install is unusable, including command line and Web interface. All I am seeing is

Fatal error: Uncaught Exception: XML error: RRDDATA at line 10149 cannot occur more than once in /etc/inc/xmlparse.inc:87 Stack trace: #0 [internal function]: startElement(Resource id #6, 'RRDDATA', Array) #1 /etc/inc/xmlparse.inc(186): xml_parse(Resource id #6, 'ElXTDFpd0JpOHNh...', false) #2 /etc/inc/xmlparse.inc(147): parse_xml_config_raw('/conf/config.xm...', Array, 'false') #3 /etc/inc/config.lib.inc(132): parse_xml_config('/conf/config.xm...', Array) #4 /etc/inc/config.inc(159): parse_config() #5 /etc/inc/gwlb.inc(23): require_once('/etc/inc/config...') #6 /etc/inc/functions.inc(33): require_once('/etc/inc/gwlb.i...') #7 /etc/inc/notices.inc(24): require_once('/etc/inc/functi...') #8 /etc/inc/config.gui.inc(37): require_once('/etc/inc/notice...') #9 /etc/inc/auth.inc(31): require_once('/etc/inc/config...') #10 /etc/inc/authgui.inc(25): include_once('/etc/inc/auth.i...') #11 /usr/local/www/guiconfig.inc(51): require_once('/etc/inc/authgu...') #12 /usr/local/www/index.php(44): require_once('/usr/local/www/...') #13 { in /etc/inc/xmlparse.inc on line 87 PHP ERROR: Type: 1, File: /etc/inc/xmlparse.inc, Line: 87, Message: Uncaught Exception: XML error: RRDDATA at line 10149 cannot occur more than once in /etc/inc/xmlparse.inc:87 Stack trace: #0 [internal function]: startElement(Resource id #6, 'RRDDATA', Array) #1 /etc/inc/xmlparse.inc(186): xml_parse(Resource id #6, 'ElXTDFpd0JpOHNh...', false) #2 /etc/inc/xmlparse.inc(147): parse_xml_config_raw('/conf/config.xm...', Array, 'false') #3 /etc/inc/config.lib.inc(132): parse_xml_config('/conf/config.xm...', Array) #4 /etc/inc/config.inc(159): parse_config() #5 /etc/inc/gwlb.inc(23): require_once('/etc/inc/config...') #6 /etc/inc/functions.inc(33): require_once('/etc/inc/gwlb.i...') #7 /etc/inc/notices.inc(24): require_once('/etc/inc/functi...') #8 /etc/inc/config.gui.inc(37): require_once('/etc/inc/notice...') #9 /etc/inc/auth.inc(31): require_once('/etc/inc/config...') #10 /etc/inc/authgui.inc(25): include_once('/etc/inc/auth.i...') #11 /usr/local/www/guiconfig.inc(51): require_once('/etc/inc/authgu...') #12 /usr/local/www/index.php(44): require_once('/usr/local/www/...') #13 {
Actions #1

Updated by Jim Pingle over 5 years ago

  • Status changed from New to Duplicate
  • Priority changed from Very High to Normal

Duplicate of #8994 which is already fixed for 2.4.4-p1.

Actions

Also available in: Atom PDF