PacketFence
Bug Tracking System

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000018PacketFence 1.6.2public2006-05-02 13:352006-05-09 15:11
Reporteruser4 
Assigned Touser4 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Summary0000018: registering new system shows Content-type headers while activating network
DescriptionWhen a user registers a new system through the web interface, he sees several Content-type headers while waiting on the network activation screen
TagsNo tags attached.
Attached Files

- Relationships
related to 0000016closed redir.cgi not working 

-  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 (developer)
2006-05-02 17:13

There was a typo in release.cgi that I corrected. Did that fix the problem?
(0000021)
dlaporte (developer)
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 (developer)
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

- Issue History
Date Modified Username Field Change
2006-05-02 13:35 user4 New Issue
2006-05-02 13:35 user4 Note Added: 0000006
2006-05-02 13:52 user4 Note Added: 0000012
2006-05-02 17:13 dlaporte Note Added: 0000016
2006-05-02 17:13 dlaporte Assigned To => user4
2006-05-02 17:13 dlaporte Status new => feedback
2006-05-03 07:45 dlaporte Note Added: 0000021
2006-05-03 07:45 dlaporte Status feedback => acknowledged
2006-05-03 07:46 dlaporte Relationship added related to 0000016
2006-05-03 10:32 user4 Note Added: 0000023
2006-05-03 10:45 user4 Note Added: 0000024
2006-05-09 15:11 kevmcs Status acknowledged => closed
2006-05-09 15:11 kevmcs Note Added: 0000057
2006-05-09 15:11 kevmcs Resolution open => fixed


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker