Skip to content

Commit 8b797b6

Browse files
committed
LDEV-1697 (related) xit dotted cfc path test — parent cfclocation breaks SF build
1 parent 66657c1 commit 8b797b6

2 files changed

Lines changed: 12 additions & 5 deletions

File tree

tests/mapping/relationships.cfc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,12 @@ component extends="org.lucee.cfml.test.LuceeTestCase" labels="orm" {
4444
expect( trim( result.filecontent ) ).toBe( "ok" );
4545
});
4646

47-
it( "many-to-one with dotted cfc path resolves via Application mapping", function() {
47+
// disabled — see LDEV-1697 (related): the parent relationships/Application.cfc has
48+
// cfclocation: [ relationships/ ] which recurses into dottedCfcPath/entities/ and
49+
// pulls Vehicle/Garage into the parent context, where /dotted isn't mapped.
50+
// Breaks every other test in this bundle. Local pass is SF-cache fluke; CI fails
51+
// every matrix cell. Re-enable when EntityFinder honours Application.cfc boundaries.
52+
xit( "many-to-one with dotted cfc path resolves via Application mapping", function() {
4853
var result = _InternalRequest( template: "#uri()#/dottedCfcPath/test.cfm" );
4954
expect( trim( result.filecontent ) ).toBe( "ok" );
5055
});

tests/mapping/relationships/dottedCfcPath/test.cfm

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
<cfscript>
2-
// Adam Tuttle 2019 reported that Lucee rejects fully-qualified CFC paths in
3-
// relationship cfc="..." attributes (e.g. cfc="orm.ems.Person"), requiring bare
4-
// names instead. This test exercises the dotted form via a /dotted mapping
5-
// configured in Application.cfc, asserting the relationship resolves correctly.
2+
// LDEV-1697 (related): exercises cfc="dotted.Garage" via a /dotted mapping
3+
// declared in this directory's Application.cfc. The test passes in isolation —
4+
// what fails is the PARENT relationships/Application.cfc whose cfclocation
5+
// recurses into dottedCfcPath/entities/ and pulls Vehicle/Garage into a context
6+
// where /dotted isn't mapped. Disabled at the runner level until Lucee's
7+
// EntityFinder honours nested Application.cfc boundaries.
68
79
garage = entityNew( "Garage", { id: createUUID(), name: "Downtown Auto" } );
810
entitySave( garage );

0 commit comments

Comments
 (0)