Project

General

Profile

Actions

Bug #6314

closed

pfsense 2.3 Captive Portal - no file loaded

Added by Paolo Brunetti over 9 years ago. Updated over 9 years ago.

Status:
Not a Bug
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
05/04/2016
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
Affected Architecture:

Description

Hi everybody,

I just made a brand new installation of pfsense-2.3-amd64.
I configured and enabled the Captive Portal as usual on the second interface (I'm using pfsense as CP since version 2.0.2 without problems).

My (very basic) html page for the CP is:

<html>
<head>
<script src="captiveportal-lib.js"></script>
</head>
<body>
<img src="captiveportal-WiFi_Zone.png" width="40px"></img>
<form method="post" action="$PORTAL_ACTION$">
<input name="auth_user" type="text">
<input name="auth_pass" type="password">
<input name="auth_voucher" type="text">
<input name="redirurl" type="hidden" value="$PORTAL_REDIRURL$">
<input name="accept" type="submit" value="Continue">
</form>
</body>
</html>

and captiveportal-lib.js contains only a trivial test function:

test = function(){
alert("test ok")
}

Despite the files captiveportal-lib.js and captiveportal-WiFi_Zone.png were loaded successfully using the CP File Manager, I cannot load them accessing the CP on any browser (Chrome, Firefox or whatever) on port new default port 8002.
The browser's debug console says "Uncaught SyntaxError: Unexpected token < captiveportal-lib.js:1", and no file (*.js, *.png) is loaded by the browser.

Obviously I can open the same html locally on my PC for test purpose without any error and with all the included files in place.

I tried the same html and files on a fresh pfsense-2.2.6-amd64, and everything is working as expected.


Files

debug-local.png (74.8 KB) debug-local.png debug-local Paolo Brunetti, 05/05/2016 04:56 AM
debug-CP.png (110 KB) debug-CP.png debug-CP Paolo Brunetti, 05/05/2016 05:04 AM
Actions

Also available in: Atom PDF