PacketFence
Bug Tracking System

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000025PacketFence 1.6.2public2006-05-04 06:092006-05-09 15:33
Reporteruser4 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Summary0000025: 'enable network' button in p2p quarantine not working
DescriptionAfter clicking the 'enable network' button in the 'Quarantine established - you have been detected using a p2p file sharing application' screen, I'm immediately redirected again to the same screen.


Here's the related /var/log/messages content:

May 4 09:03:55 pf pf: redir.cgi: 00:0c:29:b0:27:32 being redirected
May 4 09:03:56 pf pf: redir.cgi: 00:0c:29:b0:27:32 2000334 1
May 4 09:03:56 pf pf: redir.cgi: enter enable_menu
May 4 09:04:17 pf pf: db_connect: function (eval) is calling db_connect with handle 0
May 4 09:04:18 pf pf: release.cgi: 192.168.0.47 - 00:0c:29:b0:27:32 - http://www.google.ca/ [^] - - 2000334
May 4 09:04:20 pf pf: db_connect: function (eval) is calling db_connect with handle 0
 ay 4 09:04:23 pf pf: release.cgi: violation_close returned Content-Type: text/html; charset=ISO-8859-1
May 4 09:04:23 pf pf: release.cgi: 00:0c:29:b0:27:32 enabled for Content-Type: text/html; charset=ISO-88 minutes
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0000032)
user4
2006-05-04 06:10

Reminder sent to: user4, dlaporte, kevmcs

(0000033)
user4
2006-05-04 06:21

The 'pfcmd manage vclose' called from release.cgi is not working:

./bin/pfcmd manage vclose 00:0c:29:b0:27:32 2000334
Undefined subroutine &pf::violation::class_view called at /usr/local/pf/lib/pf/violation.pm line 259.


The following diff to /usr/local/pf/lib/pf/violation.pm makes the class_view subroutine available:

39a40
> use pf::class qw(class_view);
(0000035)
user4
2006-05-04 06:47

Changing max_enable for violation 2000334 to 2 in conf/violations.conf and re-executing 'manage vclose' generates another error:

./bin/pfcmd manage vclose 00:0c:29:b0:27:32 2000334
Use of uninitialized value in print at ./bin/pfcmd line 131.

The following diff to lib/pf/violation.pm fixed this
271c272
< my $grace = $class_info->{'grace'};
---
> my $grace = $class_info->{'grace_period'};
(0000036)
user4
2006-05-04 06:50

I still get the following entry into /var/log/messages:

unmark_node: unable to unmark 00:0c:29:b0:27:32 with 2000334: No chain/target/match by that name
(0000060)
kevmcs (developer)
2006-05-09 15:33

your diffs seem to work. bug fixed. cvs checked in

- Issue History
Date Modified Username Field Change
2006-05-04 06:09 user4 New Issue
2006-05-04 06:10 user4 Note Added: 0000032
2006-05-04 06:21 user4 Note Added: 0000033
2006-05-04 06:47 user4 Note Added: 0000035
2006-05-04 06:50 user4 Note Added: 0000036
2006-05-09 15:33 kevmcs Status new => closed
2006-05-09 15:33 kevmcs Note Added: 0000060
2006-05-09 15:33 kevmcs Resolution open => fixed


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker