Skip to content

COLDBOX-1481 Explain disabled implicitViews in ViewNotSetException detail - #741

Merged
lmajano merged 1 commit into
developmentfrom
code/upbeat-lamport-0cf93d
Nov 12, 2026
Merged

lmajano merged 1 commit into
developmentfrom
code/upbeat-lamport-0cf93d

Conversation

@lmajano

@lmajano lmajano commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Description

Since 8.3.0 implicitViews defaults to false (COLDBOX-1461). A handler with an empty action that relies on an implicit view (for example a module main.index with views/main/index.cfm) now fails with the generic Renderer.ViewNotSetException ("currentview has not been set"), with no hint about the setting. This was found while verifying a client report of module routes "not being picked up" after upgrading from 8.1.0 to 8.3.0. Routing was fine; the missing implicit view was the cause.

This PR appends a hint to the exception detail, including the current event, when ImplicitViews is disabled. The exception type and message are unchanged.

Spike evidence: the same module returned 200 on v8.1.0 and a 500 ViewNotSetException on v8.3.0, and setting implicitViews: true restored the 200. With this patch the BugReport on 8.3.0 shows the new detail text.

Jira Issues

https://ortussolutions.atlassian.net/browse/COLDBOX-1481 (related: COLDBOX-1461, the default change)

Type of change

  • Improvement

Checklist

  • My code follows the style guidelines of this project cfformat (format:check not run)
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (8.3.0 changelog note for the implicitViews default still open)
  • I have added tests that prove my fix is effective or that my feature works (RendererTest)
  • New and existing unit tests pass locally with my changes (the new spec has not been run, the test harness needs the coolblog datasource)

🤖 Generated with Claude Code

https://claude.ai/code/session_019aF6omMUbHEDEYW4Tm4SQn

…detail

Since 8.3.0 implicitViews defaults to false (COLDBOX-1461). Handlers that
rely on an implicit view now fail with a generic "currentview has not been
set" error that gives no hint about the setting. Append a hint to the
exception detail, naming the current event, when ImplicitViews is disabled.
Exception type and message are unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019aF6omMUbHEDEYW4Tm4SQn
@lmajano
lmajano marked this pull request as ready for review November 12, 2026 13:06
@github-actions

Copy link
Copy Markdown

Test Results

0 tests  ±0   0 ✅ ±0   0s ⏱️ ±0s
0 suites ±0   0 💤 ±0 
0 files   ±0   0 ❌ ±0 

Results for commit 8e8d85e. ± Comparison against base commit 436df65.

@lmajano lmajano changed the title Explain disabled implicitViews in ViewNotSetException detail COLDBOX-1481 Explain disabled implicitViews in ViewNotSetException detail Nov 12, 2026
@lmajano
lmajano merged commit 7a91727 into development Nov 12, 2026
17 of 27 checks passed
@lmajano
lmajano deleted the code/upbeat-lamport-0cf93d branch November 12, 2026 13:07
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