summaryrefslogtreecommitdiffstats
path: root/portal-FE-os/src/app/pages/application-onboarding
diff options
context:
space:
mode:
authorSudarshan Kumar <sudarshan.kumar@att.com>2020-08-07 15:12:24 +0530
committerSudarshan Kumar <sudarshan.kumar@att.com>2020-08-07 15:12:34 +0530
commita94388ed941c82a38b2e631cc4fd77bac212335b (patch)
tree1345c473d238f82227b9cd5e520ec0384ec4d6d9 /portal-FE-os/src/app/pages/application-onboarding
parentdd2c6fd1355f93857dc7b5ab23776a1d6543f006 (diff)
App Onboarding Inactive -500 Internal Server Error
App Onboarding Inactive -Throwing 500 Internal Server Error Issue-ID: PORTAL-976 Change-Id: I47eca9a9c1bf95476c2df666ac1bc7e05751552c Signed-off-by: Sudarshan Kumar <sudarshan.kumar@att.com>
Diffstat (limited to 'portal-FE-os/src/app/pages/application-onboarding')
-rw-r--r--portal-FE-os/src/app/pages/application-onboarding/application-details-dialog/application-details-dialog.component.ts18
1 files changed, 17 insertions, 1 deletions
diff --git a/portal-FE-os/src/app/pages/application-onboarding/application-details-dialog/application-details-dialog.component.ts b/portal-FE-os/src/app/pages/application-onboarding/application-details-dialog/application-details-dialog.component.ts
index 852e9706..2e558508 100644
--- a/portal-FE-os/src/app/pages/application-onboarding/application-details-dialog/application-details-dialog.component.ts
+++ b/portal-FE-os/src/app/pages/application-onboarding/application-details-dialog/application-details-dialog.component.ts
@@ -377,6 +377,14 @@ export class ApplicationDetailsDialogComponent implements OnInit {
if (this.isEditMode) {
console.log("Edit application Object : ", JSON.stringify(this.applicationObj));
console.log("Mode Of iNtegration : ", this.applicationObj.modeOfIntegration);
+ if (this.applicationObj.applicationType == "1" && !this.applicationObj.rolesInAAF
+ || this.applicationObj.applicationType == "3" && !this.applicationObj.rolesInAAF) {
+ this.applicationObj.usesCadi = false;
+ }
+
+ if(this.applicationObj && this.applicationObj.usesCadi){
+ this.applicationObj.appBasicAuthPassword = null;
+ }
this.applicationsService.updateOnboardingApp(this.applicationObj)
.subscribe( _data => {
this.result = _data;
@@ -420,6 +428,14 @@ export class ApplicationDetailsDialogComponent implements OnInit {
}else{
//console.log("Coming inside add application",this.newAppModel);
+ if (this.newAppModel.applicationType == "1" && !this.newAppModel.rolesInAAF
+ || this.newAppModel.applicationType == "3" && !this.newAppModel.rolesInAAF) {
+ this.newAppModel.usesCadi = false;
+ }
+
+ if(this.newAppModel && this.newAppModel.usesCadi){
+ this.newAppModel.appBasicAuthPassword = null;
+ }
this.applicationsService.addOnboardingApp(this.newAppModel)
.subscribe( _data => {
@@ -436,7 +452,7 @@ export class ApplicationDetailsDialogComponent implements OnInit {
console.log(error);
if(error.status == 409){
this.openConfirmationModal('Error', 'There was a problem adding the application changes. ' +
- 'The Application Name and URL should be unique. Error: ' +
+ 'The Application Name and Namespace should be unique. Error: ' +
error.status);
return;
} else if(error.status == 500){