Skip to content

Fixed: Two regressions in the minilang-to-Groovy conversion of ContentServicesScript.groovy (OFBIZ-13589) - #2008

Merged
mridulpathak merged 1 commit into
apache:trunkfrom
mridulpathak:OFBIZ-13589
Sep 15, 2026
Merged

mridulpathak merged 1 commit into
apache:trunkfrom
mridulpathak:OFBIZ-13589

Conversation

@mridulpathak

Copy link
Copy Markdown
Contributor
  • copyContentAndElectronicTextandAssoc assigned content directly from a cached view (ContentWorker.getContentCache()) and then mutated it in place to build the copy, silently corrupting the shared, cached ContentDataResourceView entry for the original contentId; the original minilang cloned the value before mutating, and this restores that clone
  • createMissingContentAltUrls's WebSiteContent lookup was missing a filterByDate() the original minilang had, so expired associations were also processed (over-processing only, no data loss)

Both fixes were verified against the original minilang and covered by a temporary RED/GREEN test before removal, and the content component's test suite passes unchanged.

…tServicesScript.groovy (OFBIZ-13589)

- copyContentAndElectronicTextandAssoc assigned content directly from a cached view (ContentWorker.getContentCache()) and then mutated it in place to build the copy, silently corrupting the shared, cached ContentDataResourceView entry for the original contentId; the original minilang cloned the value before mutating, and this restores that clone
- createMissingContentAltUrls's WebSiteContent lookup was missing a filterByDate() the original minilang had, so expired associations were also processed (over-processing only, no data loss)

Both fixes were verified against the original minilang and covered by a temporary RED/GREEN test before removal, and the content component's test suite passes unchanged.
@mridulpathak
mridulpathak merged commit 896b4e6 into apache:trunk Sep 15, 2026
7 checks passed
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