PacketFence - BTS - PacketFence
View Issue Details
0000766PacketFenceerror-handlingpublic2009-08-11 10:042011-01-26 15:38
obilodeau 
obilodeau 
normaltweakhave not tried
closedfixed 
 
1.9.01.9.0 
3fc7cd6262191e5234be05d2601978de9858b6da
0000766: better error message when switches.conf has two switches with the same IP
Steps to reproduce:

1. Put two switches with the same IP in switches.conf
2. Start PacketFence

Error message is very ugly (strict refs in hashes) and I think we should sanitize for that when parsing switches.conf.
No tags attached.
related to 0000964closed obilodeau Web admin error reporting regexp is too strict 
Issue History
2009-08-11 10:04obilodeauNew Issue
2009-08-19 15:55obilodeauStatusnew => assigned
2009-08-19 15:55obilodeauAssigned To => obilodeau
2009-12-10 18:47obilodeauNote Added: 0001443
2010-03-01 12:57obilodeauCategoryfuture => error-handling
2010-03-01 12:57obilodeauTarget Version => 1.8.8
2010-03-01 12:57obilodeauSummaryerror handling: better error message when switches.conf has two switches with the same IP => better error message when switches.conf has two switches with the same IP
2010-04-19 14:35obilodeauRelationship addedrelated to 0000964
2010-04-19 15:48obilodeaumtn revision => 3fc7cd6262191e5234be05d2601978de9858b6da
2010-04-19 15:48obilodeauNote Added: 0001514
2010-04-19 15:48obilodeauStatusassigned => resolved
2010-04-19 15:48obilodeauFixed in Version => 1.8.8
2010-04-19 15:48obilodeauResolutionopen => fixed
2010-04-29 13:38obilodeauFixed in Version1.8.8 => 1.9.0
2010-04-29 13:39obilodeauTarget Version1.8.8 => 1.9.0
2011-01-26 15:38obilodeauStatusresolved => closed

Notes
(0001443)
obilodeau   
2009-12-10 18:47   
parsing ini style files, my bet is that there should not be any hash refs or array refs out of that, we can validate against that
(0001514)
obilodeau   
2010-04-19 15:48   
Validating in switches_conf_is_valid if mode or type is an ARRAY it means that there were two of them. Took the opportunity to show the error message on the command line so that it'll be shown by the web interface when restarting pfsetvlan from the admin panel.