PacketFence
Bug Tracking System

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001091PacketFenceerror-handlingpublic2010-10-20 09:262015-02-13 15:39
Reporterobilodeau 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionopen 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0001091: Warnings on up traps trying to verify if MAC is a floating device
DescriptionHere's the error:

Oct 19 15:29:29 pfsetvlan(3) INFO: up trap received on 192.168.249.116 ifIndex 24 (main::handleTrap)

Oct 19 15:29:29 pfsetvlan(3) INFO: setting 192.168.249.116 port 24 to MAC detection VLAN (main::handleTrap)

Oct 19 15:29:29 pfsetvlan(3) INFO: Should set 192.168.249.116 ifIndex 24 to VLAN 4 but it is already 
in this VLAN -> Do nothing (pf::SNMP::setVlan)
Use of uninitialized value in exists at /usr/local/pf/sbin/pfsetvlan line 1412 (0000001)
    (W uninitialized) An undefined value was used as if it were already
    defined.  It was interpreted as a "" or a 0, but maybe it was a mistake.
    To suppress this warning assign a defined value to your variables.

    To help you figure out what was undefined, perl tells you what operation
    you used the undefined value in.  Note, however, that perl optimizes your
    program and the operation displayed in the warning may not necessarily
    appear literally in your program.  For example, "that $foo" is
    usually optimized into "that " . $foo, and the warning will refer to
    the concatenation (.) operator, even though there is no . in your
    program.



Here's the line:
if ($valid_locationlog_entry && (exists($ConfigFloatingDevices{$locationlog_switchport[0]->{mac}}))) {

We need to reproduce and test if:
- Is it $ConfigFloatingDevices that is empty?
- using exists instead of defined to verify $ConfigFloatingDevices
- or ->{mac} reference does necessarily exists for a node configured to rely on linkup/linkdown
TagsNo tags attached.
fixed in git revision
fixed in mtn revision
Attached Files

- Relationships

-  Notes
(0003778)
lmunro (administrator)
2015-02-13 15:39

Closing old bugs.
If we haven't fixed them in four years they are either not a bug, no longer relevant or not worth it.

- Issue History
Date Modified Username Field Change
2010-10-20 09:26 obilodeau New Issue
2010-11-19 14:24 obilodeau Target Version 1.9.2 => 2.0.0
2011-01-18 09:47 obilodeau Target Version 2.0.0 => 2.0.1
2011-01-26 15:30 obilodeau Target Version 2.0.1 => 2.0.2
2011-03-03 15:19 obilodeau Target Version 2.0.2 => +1
2015-02-13 15:39 lmunro Note Added: 0003778
2015-02-13 15:39 lmunro Status new => closed


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker