Project

General

Profile

Actions

Bug #6391

closed

View Current Portal Page goes to wrong URL

Added by Stefan Kronawithleitner over 8 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
Normal
Category:
Captive Portal
Target version:
Start date:
05/23/2016
Due date:
% Done:

100%

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

Description

When uploading custom HTML for the Captive Portal, there are options to view the current uploaded HTML in browser.

This does not work for the "Current Portal Page" when outside the internal network, because the URL of the "view" button is wrong.
The "Current Auth Error Page" view button and "Current Logout Page" view button have the correct URLs to view the site (and not open the portal itself). Opening the portal itself generates the "An error occurred. Please check the system logs for more information." error - because it is not a client that should/can authenticate outside the network (log error: "/index.php: Zone: zone_name - Captive portal could not determine client's MAC address. Disable MAC address filtering in captive portal if you do not need this functionality.")

Portal Page view: https://domain:8003/?zone=zone_name
Auth Error Page view: https://domain/services_captiveportal.php?zone=zone_name&act=viewerrhtml
Logout Page view: https://domain/services_captiveportal.php?zone=zone_name&act=viewlogouthtml

Looking at the parameters, it seems clear that "viewhtml" would work, and in fact, does:
https://domain/services_captiveportal.php?zone=zone_name&act=viewhtml works as expected.

Changing the button to this URL would make it possible to view the portal page from external hosts.

Actions #1

Updated by Renato Botelho almost 8 years ago

  • Status changed from New to Feedback
  • Assignee set to Renato Botelho
  • Target version set to 2.4.0
  • % Done changed from 0 to 100

PR has been merged

Actions #2

Updated by Jim Pingle almost 8 years ago

  • Status changed from Feedback to Resolved

Works correctly now

Actions #3

Updated by Jim Pingle over 7 years ago

  • Target version changed from 2.4.0 to 2.3.3
Actions

Also available in: Atom PDF