PacketFence - BTS - PacketFence | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0001268 | PacketFence | core | public | 2011-09-15 09:56 | 2011-09-21 22:16 |
Reporter | psnizek | ||||
Assigned To | obilodeau | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | OS Version | |||
Product Version | 2.2.1 | ||||
Target Version | Fixed in Version | 3.0.0 | |||
fixed in git revision | |||||
fixed in mtn revision | a7bb8fbc89f05301c3497194fd13ec9d086af51a | ||||
Summary | 0001268: omitting ip=|mask= parameter in pf.conf will throw unexpected exception | ||||
Description | when omitting ip= or mask= in pf.conf [interface eth0.2] #ip=192.168.2.1 #mask=255.255.255.0 type=internal gateway=192.168.2.1 an exception is thrown: root@ar:/usr/local/pf/conf# ../bin/pfcmd checkup Checking configuration sanity... Can't call method "tag" on an undefined value at /usr/local/pf/lib/pf/pfcmd/checkup.pm line 156 (0000001) (F) You used the syntax of a method call, but the slot filled by the object reference or package name contains an undefined value. Something like this will reproduce the error: $BADREF = undef; process $BADREF 1,2,3; $BADREF->process(1,2,3); Uncaught exception from user code: Can't call method "tag" on an undefined value at /usr/local/pf/lib/pf/pfcmd/checkup.pm line 156. at /usr/local/pf/lib/pf/pfcmd/checkup.pm line 156 pf::pfcmd::checkup::interfaces() called at /usr/local/pf/lib/pf/pfcmd/checkup.pm line 77 pf::pfcmd::checkup::sanity_check('named', 'dhcpd', 'httpd', 'snmptrapd', 'pfsetvlan', 'pfdhcplistener', 'pfmon') called at ../bin/pfcmd line 1356 main::checkup() called at ../bin/pfcmd line 158 main::__ANON__() called at ../bin/pfcmd line 215 When omitting gateway= [interface eth0.2] ip=192.168.2.1 mask=255.255.255.0 type=internal #gateway=192.168.2.1 we have a much nicer output: root@ar:/usr/local/pf/conf# ../bin/pfcmd checkup Checking configuration sanity... FATAL - incomplete network information for interface eth0.2 FATAL - incomplete network information for interface eth0.2 seems like if $interface in sub interfaces is undefined if one of both, ip= or mask=, is omitted in pf.conf. | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2011-09-15 09:56 | psnizek | New Issue | |||
2011-09-15 10:17 | psnizek | Note Added: 0002208 | |||
2011-09-19 11:34 | obilodeau | Status | new => assigned | ||
2011-09-19 11:34 | obilodeau | Assigned To | => obilodeau | ||
2011-09-19 12:20 | obilodeau | mtn revision | => a7bb8fbc89f05301c3497194fd13ec9d086af51a | ||
2011-09-19 12:20 | obilodeau | Note Added: 0002214 | |||
2011-09-19 12:20 | obilodeau | Status | assigned => resolved | ||
2011-09-19 12:20 | obilodeau | Fixed in Version | => trunk | ||
2011-09-19 12:20 | obilodeau | Resolution | open => fixed | ||
2011-09-21 22:07 | obilodeau | Fixed in Version | trunk => 3.0.0 | ||
2011-09-21 22:15 | obilodeau | Note Added: 0002232 | |||
2011-09-21 22:16 | obilodeau | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|