Repository navigation
COLDBOX-1481 Explain disabled implicitViews in ViewNotSetException detail - #741
Merged
Merged
Conversation
…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
marked this pull request as ready for review
November 12, 2026 13:06
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Since 8.3.0
implicitViewsdefaults tofalse(COLDBOX-1461). A handler with an empty action that relies on an implicit view (for example a modulemain.indexwithviews/main/index.cfm) now fails with the genericRenderer.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, whenImplicitViewsis disabled. The exception type and message are unchanged.Spike evidence: the same module returned 200 on v8.1.0 and a 500
ViewNotSetExceptionon v8.3.0, and settingimplicitViews: truerestored 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
Checklist
format:checknot run)implicitViewsdefault still open)RendererTest)coolblogdatasource)🤖 Generated with Claude Code
https://claude.ai/code/session_019aF6omMUbHEDEYW4Tm4SQn