PacketFence - BTS - PacketFence
View Issue Details
0001525PacketFencepublic2012-08-22 11:232012-09-06 10:57
shaman 
obilodeau 
highmajoralways
closedfixed 
3.5.0 
3.5.13.5.1 
b42daec24
0001525: Billing screen does not appear when billing feature is enabled
Turned 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.
Debian 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
No tags attached.
patch billing-engine-regression-1525.patch (656) 2012-08-27 11:28
https://www.packetfence.org/bugs/file_download.php?file_id=159&type=bug
Issue History
2012-08-22 11:23shamanNew Issue
2012-08-22 11:26obilodeauPrioritynormal => high
2012-08-22 11:26obilodeauCategorybilling => regression
2012-08-22 11:26obilodeauNote Added: 0002961
2012-08-27 09:43obilodeauStatusnew => assigned
2012-08-27 09:43obilodeauAssigned To => obilodeau
2012-08-27 11:28obilodeauFile Added: billing-engine-regression-1525.patch
2012-08-27 11:29obilodeauNote Added: 0002966
2012-08-27 11:31obilodeaugit revision => b42daec24
2012-08-27 11:31obilodeauNote Added: 0002967
2012-08-27 11:31obilodeauStatusassigned => resolved
2012-08-27 11:31obilodeauFixed in Version => +1
2012-08-27 11:31obilodeauResolutionopen => fixed
2012-09-06 10:56obilodeauTarget Version => 3.5.1
2012-09-06 10:56obilodeauFixed in Version+1 => 3.5.1
2012-09-06 10:57obilodeauNote Added: 0003014
2012-09-06 10:57obilodeauStatusresolved => closed

Notes
(0002961)
obilodeau   
2012-08-22 11:26   
triaged
(0002966)
obilodeau   
2012-08-27 11:29   
Attached patch that fixes the bug.

To apply:

cd /usr/local/pf
patch -p1 < patchfile
(0002967)
obilodeau   
2012-08-27 11:31   
Just pushed a fix for this in stable along with a regression test.
(0003014)
obilodeau   
2012-09-06 10:57   
fix released in 3.5.1 yesterday