Skip to content

LDEV-1697 tighten dotted cfc resolution + contextual throw with source CFC/property#50

Merged
zspitzer merged 1 commit into
lucee:5.6from
zspitzer:LDEV-1697-strict
May 24, 2026
Merged

LDEV-1697 tighten dotted cfc resolution + contextual throw with source CFC/property#50
zspitzer merged 1 commit into
lucee:5.6from
zspitzer:LDEV-1697-strict

Conversation

@zspitzer

@zspitzer zspitzer commented May 24, 2026

Copy link
Copy Markdown
Member

https://luceeserver.atlassian.net/browse/LDEV-1697

  • Drop the silent simple-name getCFC(name) fallback in SessionFactoryData.getEntityByCFCName (both 2-arg and 3-arg variants). A dotted reference like cfc="ns.Name" now requires the matching /ns mapping in the current app — previously a registered Name entity in any namespace would resolve, iteration-order-dependent (passed Windows, failed Linux).
  • HBMCreator.setForeignEntityName now uses the non-throwing 3-arg variant and throws contextual on null: Cannot resolve entity reference [ns.Name] on property [foo] of [...]. Names the source CFC + property so the misconfiguration is immediately diagnosable.
  • Spec rewritten as two variants: (1) parent app without the /childns mapping correctly throws with the contextual message; (2) parent declaring the mapping (via url.withMapping=true) resolves and entityNew succeeds.

Matches ACF behaviour (ACF already throws this scenario per the LDEV-1697 tracker doc).

@zspitzer zspitzer merged commit c40c719 into lucee:5.6 May 24, 2026
9 checks passed
@zspitzer zspitzer deleted the LDEV-1697-strict branch May 24, 2026 16:30
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.

1 participant