PacketFence
Bug Tracking System

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001525PacketFencepublic2012-08-22 11:232012-09-06 10:57
Reportershaman 
Assigned Toobilodeau 
PriorityhighSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version3.5.0 
Target Version3.5.1Fixed in Version3.5.1 
Summary0001525: Billing screen does not appear when billing feature is enabled
DescriptionTurned the billing engine on and have done several different combinations of captive portal / registration setup - and the end result is that the billing screen just won't come up, though self-registration will. Without going into the redir.cgi file and editing/forcing it through the if/then/else decision loop, I can't see an issue with it, either (I am not a full-time programmer).

Turning off self-registration and enabling billing results in just a login button, nothing else. Turning self-registration on provides a user with an email that when clicked gives them 7 days of access!! At no time and in several combinations of these settings, did a billing section become enabled.
Additional InformationDebian Squeeze version of Packetfence, installed from the PF apt sources. 32 bit.

Snort enabled, Nessus not enabled.

[interface eth1]
enforcement=inline
ip=192.168.0.3
type=internal
mask=255.255.252.0

[interface eth0]
ip=XX.XX.XX.XX
type=management
mask=255.255.255.0

[database]
pass=XXXXXXXX

[general]
domain=XXXXXXXX
hostname=XXXXXXXXX
logo=/common/packetfence-cp.png

[registration]
billing_engine=enabled
guests_self_registration=enabled

[alerting]
emailaddr=XXXXXXXXX
smtpserver=XXXXXXXXX

[guests_admin_registration]
access_duration_choices=1D,2D,3D,5D,7D
default_access_duration=24h

[guests_self_registration]
modes=email,sms

[provisioning]
autoconfig=disabled

[billing]
gateway=authorize_net
authorizenet_posturl=https://test.authorize.net/gateway/transact.dll [^]
authorizenet_login= XXX
authorizenet_trankey= XXX

[trapping]
registration=enabled
range=192.168.0.0/23

[advanced]
reevaluate_access_reasons=node_modify,manage_register,manage_deregister,manage_vclose,manage_vopen,violation_modify,violation_add,violation_delete,redir.cgi
TagsNo tags attached.
fixed in git revisionb42daec24
fixed in mtn revision
Attached Filespatch file icon billing-engine-regression-1525.patch [^] (656 bytes) 2012-08-27 11:28 [Show Content]

- Relationships

-  Notes
(0002961)
obilodeau (reporter)
2012-08-22 11:26

triaged
(0002966)
obilodeau (reporter)
2012-08-27 11:29

Attached patch that fixes the bug.

To apply:

cd /usr/local/pf
patch -p1 < patchfile
(0002967)
obilodeau (reporter)
2012-08-27 11:31

Just pushed a fix for this in stable along with a regression test.
(0003014)
obilodeau (reporter)
2012-09-06 10:57

fix released in 3.5.1 yesterday

- Issue History
Date Modified Username Field Change
2012-08-22 11:23 shaman New Issue
2012-08-22 11:26 obilodeau Priority normal => high
2012-08-22 11:26 obilodeau Category billing => regression
2012-08-22 11:26 obilodeau Note Added: 0002961
2012-08-27 09:43 obilodeau Status new => assigned
2012-08-27 09:43 obilodeau Assigned To => obilodeau
2012-08-27 11:28 obilodeau File Added: billing-engine-regression-1525.patch
2012-08-27 11:29 obilodeau Note Added: 0002966
2012-08-27 11:31 obilodeau git revision => b42daec24
2012-08-27 11:31 obilodeau Note Added: 0002967
2012-08-27 11:31 obilodeau Status assigned => resolved
2012-08-27 11:31 obilodeau Fixed in Version => +1
2012-08-27 11:31 obilodeau Resolution open => fixed
2012-09-06 10:56 obilodeau Target Version => 3.5.1
2012-09-06 10:56 obilodeau Fixed in Version +1 => 3.5.1
2012-09-06 10:57 obilodeau Note Added: 0003014
2012-09-06 10:57 obilodeau Status resolved => closed


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker