PacketFence - BTS - PacketFence 1.6.2
View Issue Details
0000018PacketFence 1.6.2public2006-05-02 13:352006-05-09 15:11
user4 
user4 
normalminoralways
closedfixed 
0000018: registering new system shows Content-type headers while activating network
When a user registers a new system through the web interface, he sees several Content-type headers while waiting on the network activation screen
No tags attached.
related to 0000016closed  redir.cgi not working 
Issue History
2006-05-02 13:35user4New Issue
2006-05-02 13:35user4Note Added: 0000006
2006-05-02 13:52user4Note Added: 0000012
2006-05-02 17:13dlaporteNote Added: 0000016
2006-05-02 17:13dlaporteAssigned To => user4
2006-05-02 17:13dlaporteStatusnew => feedback
2006-05-03 07:45dlaporteNote Added: 0000021
2006-05-03 07:45dlaporteStatusfeedback => acknowledged
2006-05-03 07:46dlaporteRelationship addedrelated to 0000016
2006-05-03 10:32user4Note Added: 0000023
2006-05-03 10:45user4Note Added: 0000024
2006-05-09 15:11kevmcsStatusacknowledged => closed
2006-05-09 15:11kevmcsNote Added: 0000057
2006-05-09 15:11kevmcsResolutionopen => fixed

Notes
(0000006)
user4   
2006-05-02 13:35   
Reminder sent to: dlaporte, kevmcs

(0000012)
user4   
2006-05-02 13:52   
Reminder sent to: user4

(0000016)
dlaporte   
2006-05-02 17:13   
There was a typo in release.cgi that I corrected. Did that fix the problem?
(0000021)
dlaporte   
2006-05-03 07:45   
system() calls were splitting out text to STDOUT. Changed to qx//, which allows assignment to a variable. Please let me know if this resolves it.
(0000023)
user4   
2006-05-03 10:32   
The header issue is now solved. Unfortunately, the registration is not working any more. Here's the error log:

[Wed May 03 13:30:19 2006] [error] [client 192.168.0.44] sh: -c: line 0: syntax error near unexpected token `(', referer: https://pf.inverse.qc.ca/cgi-bin/redir.cgi?destination_url=http://google.ca/ [^]
[Wed May 03 13:30:19 2006] [error] [client 192.168.0.44] sh: -c: line 0: `/usr/local/pf/bin/pfcmd manage register 00:11:25:14:15:45 dgehl user_agent=Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2', referer: https://pf.inverse.qc.ca/cgi-bin/redir.cgi?destination_url=http://google.ca/ [^]
(0000024)
user4   
2006-05-03 10:45   
The following diff solves the issue

69c69
< my $cmd = $install_dir."/bin/pfcmd manage register $mac $pid $info";
---
> my $cmd = $install_dir."/bin/pfcmd 'manage register $mac $pid $info'";
(0000057)
kevmcs   
2006-05-09 15:11   
diff in register.cgi

$info=$key.'="'.$info{$key}.'",';

along with

my $cmd = $install_dir."/bin/pfcmd manage register $mac $pid $info";

solved the problem. if $info has spaces (like user_agent) there where problems. cvs is checked in.

Kevin