PacketFence - BTS - PacketFence
View Issue Details
0001468PacketFencecorepublic2012-06-14 15:112012-06-18 13:59
_KaszpiR_ 
obilodeau 
urgentmajoralways
closedfixed 
3.4.0 
3.4.13.4.1 
785324c910808542ad1b6c4d50cb3606368091e4
0001468: Extra pipe chars in pfcmd - breaking configuration via zebui
pfcmd interfaceconfig get all
reutruns extra pipe chars after interface, thus causing certain web pages (in administration area) to show wrong data and thus forbidding to edit values

Was upgrading from 3.3.2 to 3.4.0 on CentOs 6.

Affacted pages:
interfaces
networks
fingerprints (ends with segfault, related? not tested)
[root@packetfence pf]# bin/pfcmd interfaceconfig get all
interface|ip|mask|type|enforcement|gateway
eth1||||monitor||
eth0||192.168.1.5|255.255.255.0|management||192.168.1.16
eth0.2||192.168.2.1|255.255.255.0|internal|vlan|192.168.2.1
eth0.3||192.168.3.1|255.255.255.0|internal|vlan|192.168.3.1
eth0.5||192.168.5.1|255.255.255.0|internal|inline|192.168.5.1
eth2||192.168.1.7|255.255.255.0|management|vlan|192.168.1.16
No tags attached.
has duplicate 0001472closed  networks.conf via GUI and pfcmd fields do not line up 
patch 3.4.0-critical-config-field-order-fix.patch (5,441) 2012-06-15 15:01
https://www.packetfence.org/bugs/file_download.php?file_id=147&type=bug
Issue History
2012-06-14 15:11_KaszpiR_New Issue
2012-06-14 15:12_KaszpiR_Note Added: 0002789
2012-06-14 15:51pb1dftNote Added: 0002790
2012-06-14 16:02obilodeauStatusnew => assigned
2012-06-14 16:02obilodeauAssigned To => obilodeau
2012-06-14 16:19_KaszpiR_Note Added: 0002792
2012-06-15 12:34obilodeauRelationship addedhas duplicate 0001472
2012-06-15 12:45obilodeauNote Added: 0002799
2012-06-15 15:01obilodeauFile Added: 3.4.0-critical-config-field-order-fix.patch
2012-06-15 15:02obilodeauNote Added: 0002800
2012-06-15 15:03obilodeauStatusassigned => feedback
2012-06-15 15:22obilodeauPrioritynormal => urgent
2012-06-16 02:09_KaszpiR_Note Added: 0002807
2012-06-18 13:57obilodeaugit revision => 785324c910808542ad1b6c4d50cb3606368091e4
2012-06-18 13:57obilodeauNote Added: 0002811
2012-06-18 13:57obilodeauStatusfeedback => resolved
2012-06-18 13:57obilodeauFixed in Version => +1
2012-06-18 13:57obilodeauResolutionopen => fixed
2012-06-18 13:59obilodeauNote Added: 0002812
2012-06-18 13:59obilodeauStatusresolved => closed
2012-06-18 13:59obilodeauFixed in Version+1 => 3.4.1
2012-06-18 13:59obilodeauTarget Version => 3.4.1

Notes
(0002789)
_KaszpiR_   
2012-06-14 15:12   
just checked pfcmd interfaceconfig get all but looks like the rest is affected in similiar way.
(0002790)
pb1dft   
2012-06-14 15:51   
Confirmed having the same issue with the same upgrade steps
(0002792)
_KaszpiR_   
2012-06-14 16:19   
1. fingerprints segfault was caused by php-eaccelerator.
2.I have not read upgrade manual, so I have deserved the punishment ;)
(0002799)
obilodeau   
2012-06-15 12:45   
_KaszpiR_, can you elaborate on 1. Can we do anything about it? Is it enabled by default?
(0002800)
obilodeau   
2012-06-15 15:02   
Attached a patch for the regression affecting interface, network, floating-device and violation management in Web Admin and CLI.

Please try it out and let me know if it fixes your issue.
(0002807)
_KaszpiR_   
2012-06-16 02:09   
1. Treat php-eaccelerator as a feature, not a bug. php-eaccelerator is not installed by default, just wanted to experiment if it gonna help a bit - it helps in certain situations, but looks like configuration/fingerprint.php is producing too much output for eaccelerator to handle - I have disabled it.
(0002811)
obilodeau   
2012-06-18 13:57   
marking bug as fixed in stable.
(0002812)
obilodeau   
2012-06-18 13:59   
fix released today in 3.4.1