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.setApExportUrl(userFilepath.getFileName().toString());
captiveMap
.put("username_password_file",
ManagedFileInfo.resolveWithPopulatedHostname(
mfi, externalFileStoreURL)
.getApExportUrl());
.put("username_password_file", externalFileStoreURL + mfi.getApExportUrl());
}
if (captiveProfileDetails.getLogoFile() != null) {
captiveMap.put("splash_page_logo", ManagedFileInfo
.resolveWithPopulatedHostname(captiveProfileDetails.getLogoFile(), externalFileStoreURL)
.getApExportUrl());
captiveMap.put("splash_page_logo", externalFileStoreURL +
captiveProfileDetails.getLogoFile().getApExportUrl());
}
if (captiveProfileDetails.getBackgroundFile() != null) {
captiveMap.put("splash_page_background_logo",
ManagedFileInfo.resolveWithPopulatedHostname(captiveProfileDetails.getBackgroundFile(),
externalFileStoreURL).getApExportUrl());
externalFileStoreURL + captiveProfileDetails.getBackgroundFile().getApExportUrl());
}
LOG.debug("captiveMap {}", captiveMap);
walledGardenAllowlist.addAll(captiveProfileDetails.getWalledGardenAllowlist());