From deb4fedb5c2c343b317833f557130cb5a752ccc7 Mon Sep 17 00:00:00 2001 From: BharathwajShankar <saialumnibharathwaj@gmail.com> Date: Tue, 10 Jan 2023 15:07:10 +0530 Subject: [PATCH] LR-278 - correcting the comment and spacing --- .../qrcodedownload/QRCodeDownloadManagementActor.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/course-mw/course-actors-common/src/main/java/org/sunbird/learner/actors/qrcodedownload/QRCodeDownloadManagementActor.java b/course-mw/course-actors-common/src/main/java/org/sunbird/learner/actors/qrcodedownload/QRCodeDownloadManagementActor.java index bced52221..b9190cd70 100644 --- a/course-mw/course-actors-common/src/main/java/org/sunbird/learner/actors/qrcodedownload/QRCodeDownloadManagementActor.java +++ b/course-mw/course-actors-common/src/main/java/org/sunbird/learner/actors/qrcodedownload/QRCodeDownloadManagementActor.java @@ -234,13 +234,12 @@ public class QRCodeDownloadManagementActor extends BaseActor { if (CollectionUtils.isNotEmpty(listOfMap)) { //TODO Resolve it and store. Assuming dial code db will have the template url with data migration script - //replace template url with the actual cloud url + //check if template url contains dail storage base path,if yes then append it with cnameurl and dial bucket name String templateUrl = (String) listOfMap.get(0).get("url"); if (templateUrl.contains(getConfigValue(DIAL_STORAGE_BASE_PATH_PLACEHOLDER))) - templateUrl = templateUrl.replace(getConfigValue(DIAL_STORAGE_BASE_PATH_PLACEHOLDER), - getConfigValue(CLOUD_STORAGE_CNAME_URL.isEmpty() - ?CLOUD_STORE_BASE_PATH:CLOUD_STORAGE_CNAME_URL) - +"/"+getConfigValue(CLOUD_STORAGE_DIAL_BUCKET_NAME)); + templateUrl = templateUrl.replace(getConfigValue(DIAL_STORAGE_BASE_PATH_PLACEHOLDER), + getConfigValue(CLOUD_STORAGE_CNAME_URL.isEmpty() ? CLOUD_STORE_BASE_PATH : CLOUD_STORAGE_CNAME_URL) + + "/" + getConfigValue(CLOUD_STORAGE_DIAL_BUCKET_NAME)); return templateUrl; } } -- GitLab