PacketFence - BTS - PacketFence
View Issue Details
0000856PacketFenceerror-handlingpublic2009-11-18 13:232015-02-13 15:26
obilodeau 
obilodeau 
highminoralways
closedopen 
 
 
0000856: Cisco's getVlan with unknown ifIndex returns undef
around line 367 in lib/pf/SNMP/Cisco.pm, added a TODO task

task in code at rev no: 17bc0fbf8af80db10c3bcb5af6dda2d404c4b35a

check parent bug for how to resolve
No tags attached.
child of 0000855closed  SNMP subs error-handling/exceptions 
patch 0000856_v1.patch (1,245) 2011-04-12 15:29
https://www.packetfence.org/bugs/file_download.php?file_id=90&type=bug
patch 0000856_v2.patch (1,244) 2011-04-12 15:29
https://www.packetfence.org/bugs/file_download.php?file_id=91&type=bug
Issue History
2009-11-18 13:23obilodeauNew Issue
2009-11-18 13:23obilodeauStatusnew => assigned
2009-11-18 13:23obilodeauAssigned To => obilodeau
2009-11-18 13:23obilodeauRelationship addedchild of 0000855
2010-04-15 17:43obilodeauProjectPacketFence 1.9 => PacketFence
2011-01-18 11:41obilodeauTarget Version => 2.1.0
2011-03-03 15:15obilodeauTarget Version2.1.0 => +1
2011-03-03 15:18obilodeauTarget Version+1 => +2
2011-04-12 15:29fgaudreaultFile Added: 0000856_v1.patch
2011-04-12 15:29fgaudreaultFile Added: 0000856_v2.patch
2011-04-12 15:30fgaudreaultNote Added: 0002027
2011-04-12 15:30fgaudreaultTag Attached: Code Review
2011-04-21 17:50obilodeauNote Added: 0002037
2011-04-21 17:51obilodeauTag Detached: Code Review
2011-04-21 17:51obilodeauNote Edited: 0002037
2015-02-13 15:26lmunroNote Added: 0003729
2015-02-13 15:26lmunroStatusassigned => closed

Notes
(0002027)
fgaudreault   
2011-04-12 15:30   
Two patches possible, choose the one you prefer :
- V1: This will return $result only if the value exists
- V2: This will check if $result, log and return 0 if not existing.
(0002037)
obilodeau   
2011-04-21 17:50   
(edited on: 2011-04-21 17:51)
Here the problem is not to return a different value but to prevent callers from doing something stupid. All callers should be validated and proper error handling be put in place upstream.

Not ready for review since we don't know the impact of such a change at the moment.

(0003729)
lmunro   
2015-02-13 15:26   
Old issues.
Most are not relevant to PF 4 and up.

Let's reopen the ones that matter when we move to github.