Project

General

Profile

Bug #6391

View Current Portal Page goes to wrong URL

Added by Stefan Kronawithleitner 9 months ago. Updated 18 days ago.

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

100%

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.

History

#1 Updated by Renato Botelho 3 months 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

#2 Updated by Jim Pingle 2 months ago

  • Status changed from Feedback to Resolved

Works correctly now

#3 Updated by Jim Pingle 18 days ago

  • Target version changed from 2.4.0 to 2.3.3

Also available in: Atom PDF