PacketFence
Bug Tracking System

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000942PacketFencepublic2010-04-06 12:452011-01-26 15:38
Reporterobilodeau 
Assigned Toobilodeau 
PriorityhighSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version1.9.0 
Summary0000942: problem with pfcmd's locationhistorymac and locationhistoryswitch
DescriptionReport by Jason on the -users mailing list:

I cannot run these two options “locationhistorymac” and “locationhistoryswitch”
 
[root@pf bin]# ./pfcmd locationhistorymac 00:00:aa:7b:31:75
mac|switch|port|vlan|start_time|end_time
Can't use string ("0") as a HASH ref while "strict refs" in use at ./pfcmd line
        1818 (0000001)
    (F) Only hard references are allowed by "strict refs". Symbolic
    references are disallowed. See perlref.
 
Uncaught exception from user code:
        Can't use string ("0") as a HASH ref while "strict refs" in use at ./pfcmd line 1818.
 at ./pfcmd line 1818
        main::print_results('locationlog_history_mac', '00:00:aa:7b:31:75', 'mac', '00:00:aa:7b:31:75') called at ./pfcmd line 302
        main::locationhistorymac() called at ./pfcmd line 161
        main::__ANON__() called at ./pfcmd line 192

[root@pf bin]# ./pfcmd locationhistoryswitch 10.99.0.15 2
mac|switch|port|vlan|start_time|end_time
Can't use string ("27") as a HASH ref while "strict refs" in use at ./pfcmd
        line 1818 (0000001)
    (F) Only hard references are allowed by "strict refs". Symbolic
    references are disallowed. See perlref.
 
Uncaught exception from user code:
        Can't use string ("27") as a HASH ref while "strict refs" in use at ./pfcmd line 1818.
 at ./pfcmd line 1818
        main::print_results('locationlog_history_switchport', 10.99.0.15, 'ifIndex', 2) called at ./pfcmd line 92
        main::locationhistoryswitch() called at ./pfcmd line 162
        main::__ANON__() called at ./pfcmd line 192
[root@pf bin]#
 
 
 [root@pf bin]# ./pfcmd version
PacketFence 1.8.7
DB MD5SUM: 63a6853a76ce3cde242e9cc8b9d0c71c

[root@pf bin]# rpm -qa | grep packetfence
packetfence-1.8.8-0.20100311.el5
php-jpgraph-packetfence-2.3.4-1

Note : I’m not sure why ./pfcmd version does not show 1.8.8 when rpm –qa does….

Let me know if I can provide any additional details…

Thank you,

Jason Gauruder
IT Network/Systems Administrator
TagsNo tags attached.
fixed in git revision
fixed in mtn revision176c87c96dfb0b1d5f8212eead5209f884ce642e
Attached Files

- Relationships

-  Notes
(0001504)
obilodeau (reporter)
2010-04-06 14:47

Found the source of the issue, and fixed it.

The fix was needed locationlog.pm and ifoctetslog, not only locationhistoryswitch and locationhistorymac.
(0001506)
obilodeau (reporter)
2010-04-06 16:35

Just released updated snapshot packages.

- Issue History
Date Modified Username Field Change
2010-04-06 12:45 obilodeau New Issue
2010-04-06 12:45 obilodeau Status new => assigned
2010-04-06 12:45 obilodeau Assigned To => obilodeau
2010-04-06 14:47 obilodeau Note Added: 0001504
2010-04-06 14:47 obilodeau Status assigned => resolved
2010-04-06 14:47 obilodeau Fixed in Version => 1.8.8
2010-04-06 14:47 obilodeau Resolution open => fixed
2010-04-06 14:47 obilodeau mtn revision => 176c87c96dfb0b1d5f8212eead5209f884ce642e
2010-04-06 16:35 obilodeau Note Added: 0001506
2010-04-29 13:38 obilodeau Fixed in Version 1.8.8 => 1.9.0
2011-01-26 15:38 obilodeau Status resolved => closed


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker