From 1da80725ba3bbc45abd9e90743f011fcd4dfabae Mon Sep 17 00:00:00 2001 From: michaeloffner Date: Wed, 21 Aug 2024 16:03:12 +0200 Subject: [PATCH] LDEV-5030 - replace dynamic isDefined --- .../main/cfml/context/admin/admin.search.cfm | 10 ++++-- .../admin/debugging.templates.list.cfm | 2 +- .../context/admin/ext.applications.upload.cfm | 6 +--- .../main/cfml/context/admin/ext.functions.cfm | 2 +- .../src/main/cfml/context/admin/messaging.cfm | 5 ++- .../context/admin/remote.clients.list.cfm | 4 +-- .../cfml/context/admin/resources.cfx_tags.cfm | 6 ++-- .../context/admin/resources.component.cfm | 18 +++++------ .../context/admin/resources.customtags.cfm | 32 ++++++++----------- .../admin/resources.customtags.old.cfm | 8 ++--- .../cfml/context/admin/resources.mappings.cfm | 19 ++++++----- .../cfml/context/admin/resources.rest.cfm | 4 +-- .../context/admin/server.logging.list.cfm | 2 +- .../context/admin/services.cache.list.cfm | 4 +-- .../admin/services.datasource.list.cfm | 4 +-- .../context/admin/services.gateway.list.cfm | 6 ++-- .../main/cfml/context/admin/services.mail.cfm | 20 ++++++------ .../context/admin/services.schedule.list.cfm | 8 ++--- .../cfml/context/admin/services.tasks.cfm | 4 +-- .../main/cfml/context/admin/tabbedPane.cfm | 4 +-- loader/build.xml | 2 +- loader/pom.xml | 2 +- 22 files changed, 84 insertions(+), 88 deletions(-) diff --git a/core/src/main/cfml/context/admin/admin.search.cfm b/core/src/main/cfml/context/admin/admin.search.cfm index 86c60ad215..5abb1fa92f 100644 --- a/core/src/main/cfml/context/admin/admin.search.cfm +++ b/core/src/main/cfml/context/admin/admin.search.cfm @@ -81,8 +81,14 @@ - - + + diff --git a/core/src/main/cfml/context/admin/debugging.templates.list.cfm b/core/src/main/cfml/context/admin/debugging.templates.list.cfm index 6d654e61c8..be5d6e35f1 100755 --- a/core/src/main/cfml/context/admin/debugging.templates.list.cfm +++ b/core/src/main/cfml/context/admin/debugging.templates.list.cfm @@ -29,7 +29,7 @@ - + - - - - - + diff --git a/core/src/main/cfml/context/admin/ext.functions.cfm b/core/src/main/cfml/context/admin/ext.functions.cfm index 9e976c1b22..7f77831340 100644 --- a/core/src/main/cfml/context/admin/ext.functions.cfm +++ b/core/src/main/cfml/context/admin/ext.functions.cfm @@ -545,7 +545,7 @@ } // sucessfull - if(http.status_code==200) { // if(isDefined("http.responseheader['Return-Format']")) + if(http.status_code==200) { local.result=deserializeJson(http.fileContent,false); result.lastModified=now(); diff --git a/core/src/main/cfml/context/admin/messaging.cfm b/core/src/main/cfml/context/admin/messaging.cfm index d686210e49..c9b76c36a8 100755 --- a/core/src/main/cfml/context/admin/messaging.cfm +++ b/core/src/main/cfml/context/admin/messaging.cfm @@ -29,9 +29,8 @@ ACTIONS ---> - - - + + diff --git a/core/src/main/cfml/context/admin/remote.clients.list.cfm b/core/src/main/cfml/context/admin/remote.clients.list.cfm index 95f504f0b8..368f15563f 100755 --- a/core/src/main/cfml/context/admin/remote.clients.list.cfm +++ b/core/src/main/cfml/context/admin/remote.clients.list.cfm @@ -28,7 +28,7 @@ - + - + - + )","","ALL")> - + - + - - - + + + @@ -120,9 +120,9 @@ Defaults ---> - - - + + + - + - - + + diff --git a/core/src/main/cfml/context/admin/resources.customtags.cfm b/core/src/main/cfml/context/admin/resources.customtags.cfm index 81ba0d5efc..066c246b0d 100644 --- a/core/src/main/cfml/context/admin/resources.customtags.cfm +++ b/core/src/main/cfml/context/admin/resources.customtags.cfm @@ -6,17 +6,13 @@ - - - function arrayRemoveValue(arr,value){ + function arrayRemoveValue(arr,value) { var index=arrayFindNoCase(arr,value); - if(index GT 0)ArrayDeleteAt(arr,index); + if(index GT 0) ArrayDeleteAt(arr,index); } @@ -58,9 +54,9 @@ - - - + + + @@ -122,9 +118,9 @@ - - - + + + - - + + @@ -204,7 +200,7 @@ - + function arrayRemoveValue(arr,value){ var index=arrayFindNoCase(arr,value); - if(index GT 0)ArrayDeleteAt(arr,index); + if(index GT 0) ArrayDeleteAt(arr,index); } @@ -63,8 +63,8 @@ - - + + @@ -93,7 +93,7 @@ - + - - - + + - - - + + + @@ -121,9 +120,9 @@ Defaults ---> - - - + + + - + diff --git a/core/src/main/cfml/context/admin/resources.rest.cfm b/core/src/main/cfml/context/admin/resources.rest.cfm index 9970dfbfda..3799a63e18 100644 --- a/core/src/main/cfml/context/admin/resources.rest.cfm +++ b/core/src/main/cfml/context/admin/resources.rest.cfm @@ -40,7 +40,7 @@ - aaa + aaa - aaa + aaa - + - + - + - + - + - + - + - + - - - + + + @@ -133,9 +133,9 @@ Defaults ---> port="#data.ports[idx]#" - id="#isDefined("data.ids[#idx#]")?data.ids[idx]:''#" - tls="#isDefined("data.tlss[#idx#]") and data.tlss[idx]#" - ssl="#isDefined("data.ssls[#idx#]") and data.ssls[idx]#" + id="#data.ids[idx]?:''#" + tls="#data.tlss[idx]?:false#" + ssl="#data.ssls[idx]?:false#" remoteClients="#request.getRemoteClients()#"> @@ -148,13 +148,13 @@ Defaults ---> ---> - + @@ -168,7 +168,7 @@ Defaults ---> - + - + diff --git a/core/src/main/cfml/context/admin/services.schedule.list.cfm b/core/src/main/cfml/context/admin/services.schedule.list.cfm index 9e2a7b6160..6dc92ade29 100755 --- a/core/src/main/cfml/context/admin/services.schedule.list.cfm +++ b/core/src/main/cfml/context/admin/services.schedule.list.cfm @@ -44,7 +44,7 @@ Defaults ---> - + - + - + - + - + - + - + @@ -17,7 +17,7 @@ - + diff --git a/loader/build.xml b/loader/build.xml index 6697be7ce1..cad4128ad5 100644 --- a/loader/build.xml +++ b/loader/build.xml @@ -2,7 +2,7 @@ - + diff --git a/loader/pom.xml b/loader/pom.xml index c304ae07ee..4f6cca0c13 100644 --- a/loader/pom.xml +++ b/loader/pom.xml @@ -3,7 +3,7 @@ org.lucee lucee - 6.1.1.61-SNAPSHOT + 6.1.1.62-SNAPSHOT jar Lucee Loader Build