WIFI-835: Captive Portal: User List Authentication feature does not work unless user list is pushed to cloud manually.

avoid adding https:// to externalFilestoreURL.
This commit is contained in:
Mike Hansen
2021-03-05 17:29:46 -05:00
parent 8510882ed8
commit ff8b0a006c

View File

@@ -686,20 +686,15 @@ public class OvsdbSsidConfig extends OvsdbDaoBase {
mfi.setFileType(FileType.TEXT); mfi.setFileType(FileType.TEXT);
mfi.setApExportUrl(userFilepath.getFileName().toString()); mfi.setApExportUrl(userFilepath.getFileName().toString());
captiveMap captiveMap
.put("username_password_file", .put("username_password_file", externalFileStoreURL + mfi.getApExportUrl());
ManagedFileInfo.resolveWithPopulatedHostname(
mfi, externalFileStoreURL)
.getApExportUrl());
} }
if (captiveProfileDetails.getLogoFile() != null) { if (captiveProfileDetails.getLogoFile() != null) {
captiveMap.put("splash_page_logo", ManagedFileInfo captiveMap.put("splash_page_logo", externalFileStoreURL +
.resolveWithPopulatedHostname(captiveProfileDetails.getLogoFile(), externalFileStoreURL) captiveProfileDetails.getLogoFile().getApExportUrl());
.getApExportUrl());
} }
if (captiveProfileDetails.getBackgroundFile() != null) { if (captiveProfileDetails.getBackgroundFile() != null) {
captiveMap.put("splash_page_background_logo", captiveMap.put("splash_page_background_logo",
ManagedFileInfo.resolveWithPopulatedHostname(captiveProfileDetails.getBackgroundFile(), externalFileStoreURL + captiveProfileDetails.getBackgroundFile().getApExportUrl());
externalFileStoreURL).getApExportUrl());
} }
LOG.debug("captiveMap {}", captiveMap); LOG.debug("captiveMap {}", captiveMap);
walledGardenAllowlist.addAll(captiveProfileDetails.getWalledGardenAllowlist()); walledGardenAllowlist.addAll(captiveProfileDetails.getWalledGardenAllowlist());