PacketFence - BTS - PacketFence | |||||||||||||||
View Issue Details | |||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||||
0000831 | PacketFence | public | 2009-10-27 16:53 | 2011-01-26 15:43 | |||||||||||
Reporter | obilodeau | ||||||||||||||
Assigned To | obilodeau | ||||||||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||||||||
Status | closed | Resolution | fixed | ||||||||||||
Platform | OS | OS Version | |||||||||||||
Product Version | |||||||||||||||
Target Version | Fixed in Version | ||||||||||||||
fixed in git revision | |||||||||||||||
fixed in mtn revision | |||||||||||||||
Summary | 0000831: not careful enough when validating uplink parameter in switches.conf causes threads to hang later | ||||||||||||||
Description | in SwitchFactory.pm we accept anything has an uplink: foreach my $_tmp (@_uplink_tmp) { $_tmp =~ s/ //g; push @uplink, $_tmp; } but later down the road we compare uplink in an explicitly numerical way if ( $upLinks[0] == -1 ) { $logger->warn("Can't determine Uplinks for the switch -> do nothing"); we should validate both places at first, only "dynamic" (no matter the case) and arbitrary length digits should be accepted Oct 27 02:02:02 pfcmd(0) INFO: pidof -x pfsetvlan returned 27449 (pf::services::service_ctl) Argument "dynamic" isn't numeric in numeric eq (==) at /usr/local/pf/lib/pf/vlan.pm line 148 (0000001) (W numeric) The indicated string was fed as an argument to an operator that expected a numeric value instead. If you're fortunate the message will identify which operator was so unfortunate. thread failed to start: Can't use string ("0") as a HASH ref while "strict refs" in use at /usr/local/pf/lib/pf/violation.pm line 379 (0000002) (W threads)(S) The entry point function of threads->create() failed for some reason. | ||||||||||||||
Steps To Reproduce | |||||||||||||||
Additional Information | |||||||||||||||
Tags | No tags attached. | ||||||||||||||
Relationships |
| ||||||||||||||
Attached Files | |||||||||||||||
Issue History | |||||||||||||||
Date Modified | Username | Field | Change | ||||||||||||
2009-10-27 16:53 | obilodeau | New Issue | |||||||||||||
2009-10-27 17:51 | obilodeau | Status | new => assigned | ||||||||||||
2009-10-27 17:51 | obilodeau | Assigned To | => obilodeau | ||||||||||||
2009-10-27 17:53 | obilodeau | Note Added: 0001375 | |||||||||||||
2009-10-28 14:08 | obilodeau | Relationship added | related to 0000809 | ||||||||||||
2009-10-28 14:25 | obilodeau | Note Added: 0001376 | |||||||||||||
2009-10-28 14:28 | obilodeau | Note Added: 0001377 | |||||||||||||
2009-10-28 14:28 | obilodeau | Status | assigned => resolved | ||||||||||||
2009-10-28 14:28 | obilodeau | Resolution | open => fixed | ||||||||||||
2009-10-28 14:31 | obilodeau | Relationship added | related to 0000832 | ||||||||||||
2011-01-26 15:43 | obilodeau | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|