Skip to content

fix: support partial memento settings with full null - #46

Open
elpete wants to merge 3 commits into
developmentfrom
fix/full-null-memento-defaults
Open

fix: support partial memento settings with full null#46
elpete wants to merge 3 commits into
developmentfrom
fix/full-null-memento-defaults

Conversation

@elpete

@elpete elpete commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

Summary

Mementifier treated missing per-entity memento options as null by directly dereferencing each option. On full-null runtimes, a partial memento struct omits those keys and Adobe throws an undefined-element exception before the entity can be decorated.

This change resolves settings from an explicitly key-aware entity memento struct, preserves the previous fallback for explicit null values, and safely handles the lazy entity-name lookup used by ORM auto-includes.

Supports coldbox-modules/quick#154 and coldbox-modules/quick#312.

Regression coverage

  • Adds a public-flow TestBox regression: WireBox creates a real model with only defaultIncludes configured, the module interceptor decorates it, and the test calls the injected public getMemento() API.
  • Adds a dependency-free Adobe 2025 HTTP regression app with full null enabled. It decorates a partial-memento component through public processMemento() and verifies getMemento().
  • Runs the standalone full-null regression in CI for Adobe 2025 rows.

Before the source fix, Adobe failed at interceptors/Mementifier.cfc:89 with Element MEMENTO is undefined. The same focused bundle passes after the fix.

Existing Adobe baseline repair

Current Adobe 2023/2025 patches derive ORM fixture component names from GitHub Actions' physical checkout path as mementifier.test-harness.models.*, then fail to resolve that generated path. This is independent of the source change: the latest development baseline run failed identically before this branch, while the same matrix was green in June on the preceding Adobe patches.

CI now initializes the test application directly and creates an Adobe-only filesystem alias for that generated ORM path. The standalone full-null regression remains separate and passes before the full ORM suite runs, so framework setup cannot mask the Mementifier regression.

Validation

GitHub Actions runs 32617297951 and 32617300183 both passed.

Every engine row reports 21 passed, 0 failed, 0 errored, 0 skipped:

  • Adobe 2023 and 2025, stable ColdBox 7
  • Adobe 2023 and 2025, ColdBox BE
  • Lucee 5 and 6, stable and BE
  • BoxLang CFML 1 and BE

Local validation also covered:

  • Adobe 2025 full null: 21 passed, 0 failed, 0 errored
  • Lucee 6 full null: 21 passed, 0 failed, 0 errored
  • focused public-flow bundle: 7 passed, 0 failed, 0 errored
  • standalone Adobe and Lucee full-null endpoints: PASS
  • cfformat checks and git diff --check passed

The full integration suite also exposed a separate cbORM lazy-state issue. That dependency fix, with its own public-API regressions, is in coldbox-modules/cborm#87.

@github-actions

github-actions Bot commented Aug 23, 2026

Copy link
Copy Markdown

lucee@5 ColdBox ^7.0.0 Test Results

21 tests  +1   21 ✅ +1   1s ⏱️ ±0s
 2 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit af3e550. ± Comparison against base commit 48453ec.

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented Aug 23, 2026

Copy link
Copy Markdown

lucee@6 ColdBox ^7.0.0 Test Results

21 tests  +1   21 ✅ +1   1s ⏱️ ±0s
 2 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit af3e550. ± Comparison against base commit 48453ec.

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented Aug 23, 2026

Copy link
Copy Markdown

lucee@5 ColdBox be Test Results

21 tests  +1   21 ✅ +1   2s ⏱️ -1s
 2 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit af3e550. ± Comparison against base commit 48453ec.

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented Aug 23, 2026

Copy link
Copy Markdown

lucee@6 ColdBox be Test Results

21 tests  +1   21 ✅ +1   1s ⏱️ ±0s
 2 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit af3e550. ± Comparison against base commit 48453ec.

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented Aug 23, 2026

Copy link
Copy Markdown

boxlang-cfml@be ColdBox be Test Results

21 tests  +1   21 ✅ +1   3s ⏱️ -1s
 2 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit af3e550. ± Comparison against base commit 48453ec.

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented Aug 23, 2026

Copy link
Copy Markdown

boxlang-cfml@1 ColdBox ^7.0.0 Test Results

21 tests  +1   21 ✅ +1   2s ⏱️ -1s
 2 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit af3e550. ± Comparison against base commit 48453ec.

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented Aug 23, 2026

Copy link
Copy Markdown

adobe@2023 ColdBox be Test Results

 1 files  ±0   2 suites  ±0   2s ⏱️ -1s
21 tests +6  21 ✅ +21  0 💤 ±0  0 ❌  - 1 
21 runs  +7  21 ✅ +20  0 💤 ±0  0 ❌  - 1 

Results for commit af3e550. ± Comparison against base commit 48453ec.

This pull request removes 1 and adds 7 tests. Note that renamed tests count towards both.
tests.specs.unit.interceptors.MementifierTest ‑ tests.specs.unit.interceptors.MementifierTest
tests.specs.unit.interceptors.MementifierTest ‑ Mementifier Should exclude any explicit excludes
tests.specs.unit.interceptors.MementifierTest ‑ Mementifier Should include all items from defaultIncludes
tests.specs.unit.interceptors.MementifierTest ‑ Mementifier Should not be possible to include neverIncludes
tests.specs.unit.interceptors.MementifierTest ‑ Mementifier Won't call the same getter twice
tests.specs.unit.interceptors.MementifierTest ‑ Mementifier Won't modify includes/excludes arrays
tests.specs.unit.interceptors.MementifierTest ‑ Mementifier should not process empty string include
tests.specs.unit.interceptors.MementifierTest ‑ Mementifier supports partial memento settings with full null support

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented Aug 23, 2026

Copy link
Copy Markdown

adobe@2025 ColdBox ^7.0.0 Test Results

 1 files  ±0   2 suites  ±0   1s ⏱️ -1s
21 tests +6  21 ✅ +21  0 💤 ±0  0 ❌  - 1 
21 runs  +7  21 ✅ +20  0 💤 ±0  0 ❌  - 1 

Results for commit af3e550. ± Comparison against base commit 48453ec.

This pull request removes 1 and adds 7 tests. Note that renamed tests count towards both.
tests.specs.unit.interceptors.MementifierTest ‑ tests.specs.unit.interceptors.MementifierTest
tests.specs.unit.interceptors.MementifierTest ‑ Mementifier Should exclude any explicit excludes
tests.specs.unit.interceptors.MementifierTest ‑ Mementifier Should include all items from defaultIncludes
tests.specs.unit.interceptors.MementifierTest ‑ Mementifier Should not be possible to include neverIncludes
tests.specs.unit.interceptors.MementifierTest ‑ Mementifier Won't call the same getter twice
tests.specs.unit.interceptors.MementifierTest ‑ Mementifier Won't modify includes/excludes arrays
tests.specs.unit.interceptors.MementifierTest ‑ Mementifier should not process empty string include
tests.specs.unit.interceptors.MementifierTest ‑ Mementifier supports partial memento settings with full null support

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented Aug 23, 2026

Copy link
Copy Markdown

adobe@2023 ColdBox ^7.0.0 Test Results

 1 files  ±0   2 suites  ±0   1s ⏱️ -1s
21 tests +6  21 ✅ +21  0 💤 ±0  0 ❌  - 1 
21 runs  +7  21 ✅ +20  0 💤 ±0  0 ❌  - 1 

Results for commit af3e550. ± Comparison against base commit 48453ec.

This pull request removes 1 and adds 7 tests. Note that renamed tests count towards both.
tests.specs.unit.interceptors.MementifierTest ‑ tests.specs.unit.interceptors.MementifierTest
tests.specs.unit.interceptors.MementifierTest ‑ Mementifier Should exclude any explicit excludes
tests.specs.unit.interceptors.MementifierTest ‑ Mementifier Should include all items from defaultIncludes
tests.specs.unit.interceptors.MementifierTest ‑ Mementifier Should not be possible to include neverIncludes
tests.specs.unit.interceptors.MementifierTest ‑ Mementifier Won't call the same getter twice
tests.specs.unit.interceptors.MementifierTest ‑ Mementifier Won't modify includes/excludes arrays
tests.specs.unit.interceptors.MementifierTest ‑ Mementifier should not process empty string include
tests.specs.unit.interceptors.MementifierTest ‑ Mementifier supports partial memento settings with full null support

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented Aug 23, 2026

Copy link
Copy Markdown

adobe@2025 ColdBox be Test Results

 1 files  ±0   2 suites  ±0   1s ⏱️ -1s
21 tests +6  21 ✅ +21  0 💤 ±0  0 ❌  - 1 
21 runs  +7  21 ✅ +20  0 💤 ±0  0 ❌  - 1 

Results for commit af3e550. ± Comparison against base commit 48453ec.

This pull request removes 1 and adds 7 tests. Note that renamed tests count towards both.
tests.specs.unit.interceptors.MementifierTest ‑ tests.specs.unit.interceptors.MementifierTest
tests.specs.unit.interceptors.MementifierTest ‑ Mementifier Should exclude any explicit excludes
tests.specs.unit.interceptors.MementifierTest ‑ Mementifier Should include all items from defaultIncludes
tests.specs.unit.interceptors.MementifierTest ‑ Mementifier Should not be possible to include neverIncludes
tests.specs.unit.interceptors.MementifierTest ‑ Mementifier Won't call the same getter twice
tests.specs.unit.interceptors.MementifierTest ‑ Mementifier Won't modify includes/excludes arrays
tests.specs.unit.interceptors.MementifierTest ‑ Mementifier should not process empty string include
tests.specs.unit.interceptors.MementifierTest ‑ Mementifier supports partial memento settings with full null support

♻️ This comment has been updated with latest results.

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