PacketFence
Bug Tracking System

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000833PacketFenceupstreampublic2009-10-30 15:172011-01-26 15:38
Reporterobilodeau 
Assigned Toobilodeau 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version1.9.0 
Summary0000833: Parse::RecDescent 1.962 regression
DescriptionLatest version of Parse::RecDescent doesn't work with packetfence..

Error message is: Can't coerce GLOB to string in or at /usr/local/pf/bin/pfcmd line 1794.

It turns out that a newer Parse::RecDescent generate a pfcmd_pregrammar.pm that causes problems when pfcmd is called form the admin interface. Also on startup you can see the coerce glob error.

http://search.cpan.org/dist/Parse-RecDescent/ [^]

Known buggy:
perl-Parse-RecDescent-1.962.2-1.el5.rf

Known to work:
perl-Parse-RecDescent-1.94-1.el5.rf

Tasks:
- upgrade lab to 1.962
- run packetfence, check for error
- regenerate pfcmd_grammar
- re-run packetfence, did that fix the error?
- if not, find root cause and report upstream if needed
TagsNo tags attached.
fixed in git revision
fixed in mtn revisionf910994e452cb1a6a14b41da81d457df70a92294
Attached Files

- Relationships
parent of 0000806closedobilodeau Parse::RecDescent regression causing errors in admin interface 

-  Notes
(0001562)
obilodeau (reporter)
2010-05-06 12:55

I was unable to reproduce so I removed the pinned version.
(0001566)
obilodeau (reporter)
2010-05-17 17:44

I got hit by this again after all.

It was reproducible when bin/pfcmd was called from the web in cgi-bin (as user pf).

ex: /usr/local/pf/bin/pfcmd 'manage register aa:bb:cc:dd:ee:ff "test" pid="1",user_agent="Mozilla 5.0 Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.3 Gecko 20100401 Firefox 3.6.3",vlan="1"'

A really nasty bitch to find, not so much to fix. Upstream behavior did change but I don't really get what's up with "Can't coerce GLOB to string" so I tried using the command variable and calling the method using &{$..} and it works so it's good enough for me.
(0001567)
obilodeau (reporter)
2010-05-17 18:02

Hopefully fixed for good now in mtn revno: f910994e452cb1a6a14b41da81d457df70a92294

Removal of pinned dep in RPM spec in mtn revno: 7beb12ad733d0a113e304aa4bdd1d6a4ce70ef58
(0001569)
obilodeau (reporter)
2010-05-25 17:11

pushed another change on top of fix in revno 87d1afe8367be3c58d53ebcf90e49fd037297cc6

removed symbolic references in favor of hard ones

- Issue History
Date Modified Username Field Change
2009-10-30 15:17 obilodeau New Issue
2009-10-30 15:17 obilodeau Relationship added parent of 0000806
2009-10-30 15:17 obilodeau Status new => assigned
2009-10-30 15:17 obilodeau Assigned To => obilodeau
2010-05-05 12:44 obilodeau Category future => upstream
2010-05-06 12:55 obilodeau mtn revision => 7beb12ad733d0a113e304aa4bdd1d6a4ce70ef58
2010-05-06 12:55 obilodeau Note Added: 0001562
2010-05-06 12:55 obilodeau Status assigned => resolved
2010-05-06 12:55 obilodeau Fixed in Version => 1.9.0
2010-05-06 12:55 obilodeau Resolution open => unable to reproduce
2010-05-17 17:44 obilodeau Note Added: 0001566
2010-05-17 17:44 obilodeau Status resolved => feedback
2010-05-17 17:44 obilodeau Resolution unable to reproduce => reopened
2010-05-17 18:02 obilodeau mtn revision 7beb12ad733d0a113e304aa4bdd1d6a4ce70ef58 => f910994e452cb1a6a14b41da81d457df70a92294
2010-05-17 18:02 obilodeau Note Added: 0001567
2010-05-17 18:02 obilodeau Status feedback => resolved
2010-05-17 18:02 obilodeau Resolution reopened => fixed
2010-05-25 17:11 obilodeau Note Added: 0001569
2011-01-26 15:38 obilodeau Status resolved => closed


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker