This is an automated email from the ASF dual-hosted git repository.
mridulpathak pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/trunk by this push:
new 4f1fd42f1f Fixed: Two regressions in the minilang-to-Groovy conversion
of ContentServicesScript.groovy (OFBIZ-13622)
4f1fd42f1f is described below
commit 4f1fd42f1f93478971f18881f04501c39d94034c
Author: Mridul Pathak <[email protected]>
AuthorDate: Tue Sep 29 19:21:27 2026 +0530
Fixed: Two regressions in the minilang-to-Groovy conversion of
ContentServicesScript.groovy (OFBIZ-13622)
- createContentAlternativeUrl()'s new-alt-URL branch built objectInfo
without its leading slash, so ContentUrlFilter's inbound exact-match lookup
could never succeed for any content that didn't already have an alternative URL.
- The repair branch for an existing alt-URL stub had a stray apostrophe
instead of a hyphen separating the URI from the content ID.
---
.../org/apache/ofbiz/content/content/ContentServicesScript.groovy | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/applications/content/src/main/groovy/org/apache/ofbiz/content/content/ContentServicesScript.groovy
b/applications/content/src/main/groovy/org/apache/ofbiz/content/content/ContentServicesScript.groovy
index 553468712d..431139be5f 100644
---
a/applications/content/src/main/groovy/org/apache/ofbiz/content/content/ContentServicesScript.groovy
+++
b/applications/content/src/main/groovy/org/apache/ofbiz/content/content/ContentServicesScript.groovy
@@ -161,7 +161,7 @@ Map createContentAlternativeUrl() {
if (uri) {
try {
serviceResult = run service:
'updateDataResource', with: [dataResourceId:
contentAssocDataResources[0].dataResourceId,
-
objectInfo: "/${uri}'${content.contentId}-content"]
+
objectInfo: "/${uri}-${content.contentId}-content"]
if (ServiceUtil.isSuccess(serviceResult)) {
contentIdTo = serviceResult.contentId
}
@@ -181,7 +181,7 @@ Map createContentAlternativeUrl() {
Map serviceResult = run service:
'createDataResource', with: [dataResourceId:
delegator.getNextSeqId('DataResource'),
dataResourceTypeId: 'URL_RESOURCE',
localeString: localeString.toString(),
-
objectInfo: "${uri}-${content.contentId}-content",
+
objectInfo: "/${uri}-${content.contentId}-content",
statusId: 'CTNT_IN_PROGRESS']
if (ServiceUtil.isSuccess(serviceResult)) {
dataResourceId =
serviceResult.dataResourceId