File tree Expand file tree Collapse file tree
relationships/dottedCfcPath Expand file tree Collapse file tree Original file line number Diff line number Diff 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 });
Original file line number Diff line number Diff line change 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
79garage = entityNew ( " Garage" , { id : createUUID (), name : " Downtown Auto" } );
810entitySave ( garage );
You can’t perform that action at this time.
0 commit comments