Skip to content

Commit

Permalink
v7.1.0 - Merge pull request #582 from ColdBox/development
Browse files Browse the repository at this point in the history
v7.1.0
  • Loading branch information
lmajano authored Aug 3, 2023
2 parents f7edf16 + 3b5b80b commit 537cb55
Show file tree
Hide file tree
Showing 42 changed files with 473 additions and 346 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
workflow_call:
secrets:
SLACK_WEBHOOK_URL:
required: true
required: false

jobs:
tests:
Expand All @@ -19,15 +19,11 @@ jobs:
strategy:
fail-fast: false
matrix:
commandbox_version: [ "5.8.0" ]
cfengine: [ "lucee@5", "adobe@2018", "adobe@2021" ]
commandbox_version: [ "5.9.0" ]
cfengine: [ "lucee@5", "adobe@2018", "adobe@2021", "adobe@2023" ]
jdkVersion: [ "11" ]
experimental: [false]
include:
- cfengine: "lucee@5rc"
commandbox_version: "6.0.0-alpha"
jdkVersion: "11"
experimental: true
- cfengine: "lucee@6"
commandbox_version: "6.0.0-alpha"
jdkVersion: "11"
Expand All @@ -37,13 +33,9 @@ jobs:
jdkVersion: "17"
experimental: true
- cfengine: "adobe@2023"
commandbox_version: "6.0.0-alpha"
jdkVersion: "11"
experimental: true
- cfengine: "adobe@2023"
commandbox_version: "6.0.0-alpha"
commandbox_version: "5.9.0"
jdkVersion: "17"
experimental: true
experimental: false
steps:
- name: Checkout Repository
uses: actions/checkout@v2
Expand Down Expand Up @@ -126,6 +118,8 @@ jobs:
- name: Failure Debugging Info
if: ${{ failure() }}
run: |
box version
box server info serverConfigFile="server-${{ matrix.cfengine }}.json" --json
box server log serverConfigFile="server-${{ matrix.cfengine }}.json"
- name: Upload Debugging Info To Artifacts
Expand Down
14 changes: 7 additions & 7 deletions box.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name":"ColdBox Platform",
"version":"7.0.0",
"version":"7.1.0",
"location":"https://downloads.ortussolutions.com/ortussolutions/coldbox/@build.version@/[email protected]@.zip",
"author":"Ortus Solutions <[email protected]>",
"slug":"coldbox",
Expand Down Expand Up @@ -42,7 +42,7 @@
"cbproxies":"^1.0.1+13"
},
"devDependencies":{
"testbox":"be",
"testbox":"^5.1.0+2",
"commandbox-dotenv":"*",
"commandbox-cfconfig":"*",
"commandbox-cfformat":"*"
Expand All @@ -55,19 +55,19 @@
"start:lucee":"server start serverConfigFile='[email protected]' --force",
"start:2018":"server start serverConfigFile='[email protected]' --force",
"start:2021":"server start serverConfigFile='[email protected]' --force",
"start:2023":"server start serverConfigFile="[email protected]" --force",
"stop:lucee":"server stop serverConfigFile="[email protected]" --force",
"start:2023":"server start serverConfigFile="[email protected]" --force",
"stop:lucee":"server stop serverConfigFile="[email protected]" --force",
"stop:2018":"server stop serverConfigFile='[email protected]' --force",
"stop:2021":"server stop serverConfigFile='[email protected]' --force",
"stop:2023":"server stop serverConfigFile="[email protected]" --force",
"stop:2023":"server stop serverConfigFile="[email protected]" --force",
"log:lucee":"server log coldbox-lucee@5 --follow",
"log:2018":"server log coldbox-adobe@2018 --follow",
"log:2021":"server log coldbox-adobe@2021 --follow",
"log:2023":"server log coldbox-adobe@2023 --follow",
"log:2023":"server log coldbox-adobe@2023 --follow",
"cfpm":"echo '\".engine/acf2021/WEB-INF/cfusion/bin/cfpm.sh\"' | run",
"cfpm:install":"echo '\".engine/adobe2021/WEB-INF/cfusion/bin/cfpm.sh\" install ${1}' | run"
},
"installPaths":{
"installPaths":{
"testbox":"testbox/",
"cbproxies":"system/async/cbproxies/"
}
Expand Down
20 changes: 3 additions & 17 deletions build/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -277,10 +277,7 @@
<fileset dir="system/async" />
</copy>
<copy todir="${dir.build}/cachebox/system/core" encoding="UTF-8" overwrite="true">
<fileset dir="system/core">
<exclude name="mail/*" />
<exclude name="db/*" />
</fileset>
<fileset dir="system/core" />
</copy>
<copy todir="${dir.build}/cachebox/system/logging" encoding="UTF-8" overwrite="true">
<fileset dir="system/logging" />
Expand Down Expand Up @@ -394,12 +391,7 @@
<fileset dir="system/async" />
</copy>
<copy todir="${dir.build}/logbox/system/core" encoding="UTF-8" overwrite="true">
<fileset dir="system/core">
<include name="util/*" />
<include name="dynamic/*" />
<include name="collections/*" />
<include name="conversion/*" />
</fileset>
<fileset dir="system/core" />
</copy>
<!--Copy text files to root folder-->
<copy todir="${dir.build}/logbox" encoding="UTF-8" overwrite="true">
Expand Down Expand Up @@ -513,13 +505,7 @@
<fileset dir="system/cache" />
</copy>
<copy todir="${dir.build}/wirebox/system/core" encoding="UTF-8" overwrite="true">
<fileset dir="system/core">
<include name="collections/"/>
<include name="conversion/"/>
<include name="util/"/>
<include name="dynamic/"/>
<include name="events/"/>
</fileset>
<fileset dir="system/core" />
</copy>
<copy todir="${dir.build}/wirebox/system/logging" encoding="UTF-8" overwrite="true">
<fileset dir="system/logging" />
Expand Down
45 changes: 45 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,51 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### ColdBox HMVC

#### Bug

- [COLDBOX-1233](https://ortussolutions.atlassian.net/browse/COLDBOX-1233) Exception bean can't cast \`"i"\` to a number value

#### New Feature

- [COLDBOX-1229](https://ortussolutions.atlassian.net/browse/COLDBOX-1229) Added debug argument to ScheduleExecutor and Scheduler when creating tasks for consistency
- [COLDBOX-1230](https://ortussolutions.atlassian.net/browse/COLDBOX-1230) Reorganized ScheduledTasks functions within the CFC into code groups and comments
- [COLDBOX-1235](https://ortussolutions.atlassian.net/browse/COLDBOX-1235) New StringUtil.prettySQL method for usage in debugging and whoops reports
- [COLDBOX-1238](https://ortussolutions.atlassian.net/browse/COLDBOX-1238) New testing matcher: toRedirectTo for easier testing against relocations
- [COLDBOX-1239](https://ortussolutions.atlassian.net/browse/COLDBOX-1239) New REST convention for custom error handlers: \`on\{errorType\}Exception\(\)\`

#### Improvements

- [COLDBOX-1041](https://ortussolutions.atlassian.net/browse/COLDBOX-1041) Logging category in ColdBox scheduler is generic
- [COLDBOX-1231](https://ortussolutions.atlassian.net/browse/COLDBOX-1231) Improve RestHandler Exception handler with on#ExceptionType#Exception\(\) convention
- [COLDBOX-1234](https://ortussolutions.atlassian.net/browse/COLDBOX-1234) Account for null or empty incoming json to prettyjson output
- [COLDBOX-1236](https://ortussolutions.atlassian.net/browse/COLDBOX-1236) Incorporate appName into the appHash to give more uniqueness to locks internally

#### Tasks

- [COLDBOX-1237](https://ortussolutions.atlassian.net/browse/COLDBOX-1237) Removal of Lucee RC tests - no longer needed

### WireBox

#### Bug

- [WIREBOX-148](https://ortussolutions.atlassian.net/browse/WIREBOX-148) Several AOP and Internal WireBox methods not excluded from delegations
- [WIREBOX-150](https://ortussolutions.atlassian.net/browse/WIREBOX-150) Wirebox standalone is missing delegates
- [WIREBOX-151](https://ortussolutions.atlassian.net/browse/WIREBOX-151) Injections are null, sometimes
- [WIREBOX-152](https://ortussolutions.atlassian.net/browse/WIREBOX-152) getEnv errors in Binder context
- [WIREBOX-154](https://ortussolutions.atlassian.net/browse/WIREBOX-154) populateFromQuery delegate defaulting composeRelationships to true

#### Improvement

- [WIREBOX-147](https://ortussolutions.atlassian.net/browse/WIREBOX-147) Improve debug logging to not send the full memento on several debug operations

#### Task

- [WIREBOX-149](https://ortussolutions.atlassian.net/browse/WIREBOX-149) \`toWebservice\(\)\` is now deprecated

* * *

## [7.0.0] - 2023-05-15

### ColdBox HMVC
Expand Down
1 change: 0 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ ColdBox *Hierarchical* MVC is the de-facto enterprise-level [HMVC](https://en.wi
* [An extensive eco-system](https://forgebox.io)
* Much More


## LTS Support

For all ColdBox releases, updates are provided for 12 months and security fixes are provided for 2 years after the next major release.
Expand Down
12 changes: 6 additions & 6 deletions [email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
"JVM":{
"heapSize":"1024"
},
"cfconfig": {
"file" : ".cfconfig.json"
},
"scripts" : {
"onServerInstall":"cfpm install caching,zip,orm,mysql,postgresql,sqlserver,document,feed,mail,debugger"
}
"cfconfig":{
"file":".cfconfig.json"
},
"scripts":{
"onServerInstall":"cfpm install caching,zip,orm,mysql,postgresql,sqlserver,document,feed,mail,debugger"
}
}
2 changes: 1 addition & 1 deletion [email protected]
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"app":{
"cfengine":"adobe@2023.0.0-beta.1",
"cfengine":"adobe@2023",
"serverHomeDirectory":".engine/adobe2023"
},
"name":"coldbox-adobe@2023",
Expand Down
5 changes: 4 additions & 1 deletion [email protected]
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"app":{
"cfengine":"lucee@5",
"cfengine":"lucee@5.4",
"serverHomeDirectory":".engine/lucee5"
},
"name":"coldbox-lucee@5",
Expand All @@ -23,5 +23,8 @@
},
"cfconfig":{
"file":".cfconfig.json"
},
"env":{
"lucee-extensions":"D062D72F-F8A2-46F0-8CBC91325B2F067B"
}
}
27 changes: 0 additions & 27 deletions [email protected]

This file was deleted.

5 changes: 4 additions & 1 deletion [email protected]
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"app":{
"cfengine":"[email protected]BETA+346",
"cfengine":"[email protected]snapshot",
"serverHomeDirectory":".engine/lucee6"
},
"name":"coldbox-lucee@6",
Expand All @@ -23,5 +23,8 @@
},
"cfconfig":{
"file":".cfconfig.json"
},
"env":{
"lucee-extensions":"D062D72F-F8A2-46F0-8CBC91325B2F067B"
}
}
9 changes: 6 additions & 3 deletions [email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
"JVM":{
"heapSize":"1024"
},
"cfconfig": {
"file" : ".cfconfig.json"
}
"cfconfig":{
"file":".cfconfig.json"
},
"env":{
"lucee-extensions":"D062D72F-F8A2-46F0-8CBC91325B2F067B"
}
}
9 changes: 6 additions & 3 deletions [email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
"JVM":{
"heapSize":"1024"
},
"cfconfig": {
"file" : ".cfconfig.json"
}
"cfconfig":{
"file":".cfconfig.json"
},
"env":{
"lucee-extensions":"D062D72F-F8A2-46F0-8CBC91325B2F067B,37C61C0A-5D7E-4256-8572639BE0CF5838 "
}
}
14 changes: 14 additions & 0 deletions system/RestHandler.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,20 @@ component extends="EventHandler" {
* @exception The thrown exception
*/
function onAnyOtherException( event, rc, prc, eventArguments, exception = {} ){
// Param due to inconsistencies with safe navigation operators in all CFML engines
param arguments.exception.type = "";

// Handle a convention of on{type}Exception() in your base handler
if (
len( arguments.exception.type ) && structKeyExists( this, "on#arguments.exception.type#Exception" ) && isCustomFunction(
this[ "on#arguments.exception.type#Exception" ]
)
) {
this[ "on#arguments.exception.type#Exception" ]( argumentCollection = arguments );
return;
}


// Log Exception
log.error(
"Error calling #arguments.event.getCurrentEvent()#: #arguments.exception.message# #arguments.exception.detail#",
Expand Down
4 changes: 3 additions & 1 deletion system/async/executors/ScheduledExecutor.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,13 @@ component extends="Executor" accessors="true" singleton {
* Build out a new scheduled task representation. Calling this method does not mean that the task is executed.
*
* @name The name of the task
* @debug Add debugging logs to System out, disabled by default
* @task The closure or cfc that represents the task (optional)
* @method The method on the cfc to call, defaults to "run" (optional)
*/
ScheduledTask function newTask(
name = "task-#getName()#-#createUUID()#",
name = "task-#getName()#-#createUUID()#",
debug = false,
task,
method = "run"
){
Expand Down
Loading

0 comments on commit 537cb55

Please sign in to comment.