Skip to content

Conversation

@homestar9
Copy link
Contributor

If you set this.unLoadColdbox = true; in your tests, there won't be a ColdboxVirtualApp in the request scope and the page will throw an exception "The key [COLDBOXVIRTUALAPP] does not exist in the request scope, the structure is empty"

Type of change

  • Bug Fix

Checklist

If you set `this.unLoadColdbox = true; ` in your tests, there won't be a `ColdboxVirtualApp` in the `request` scope and the page will throw an exception "The key [COLDBOXVIRTUALAPP] does not exist in the request scope, the structure is empty"
Copilot AI review requested due to automatic review settings January 10, 2026 19:21
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a bug where the onRequestEnd method in the test harness throws an exception when this.unLoadColdbox = true is set in tests. The fix adds a defensive check to verify the existence of coldBoxVirtualApp in the request scope before attempting to call its shutdown method.

Changes:

  • Added conditional check in onRequestEnd to prevent exception when coldBoxVirtualApp is not in the request scope

lmajano and others added 2 commits January 20, 2026 12:58
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@lmajano lmajano merged commit 0b0be6a into coldbox-modules:master Jan 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants