You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2024/12/06 15:17:12 UTC
(ofbiz-framework) branch trunk updated: Fixed: Bug persisting uploaded files with service attachUploadToDataResource (OFBIZ-13191)
This is an automated email from the ASF dual-hosted git repository.
jleroux 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 3b3947a837 Fixed: Bug persisting uploaded files with service attachUploadToDataResource (OFBIZ-13191)
3b3947a837 is described below
commit 3b3947a837c541da22881d71e2e942e784f27fed
Author: Jacques Le Roux <ja...@les7arts.com>
AuthorDate: Fri Dec 6 16:12:57 2024 +0100
Fixed: Bug persisting uploaded files with service attachUploadToDataResource (OFBIZ-13191)
It's broken by OFBIZ-11469 in 2021 (Minilang to Groovy migration) so no need to
backport in 18.12
---
.../groovy/org/apache/ofbiz/content/data/DataServicesScript.groovy | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/applications/content/src/main/groovy/org/apache/ofbiz/content/data/DataServicesScript.groovy b/applications/content/src/main/groovy/org/apache/ofbiz/content/data/DataServicesScript.groovy
index 346068d6b9..a01527db53 100644
--- a/applications/content/src/main/groovy/org/apache/ofbiz/content/data/DataServicesScript.groovy
+++ b/applications/content/src/main/groovy/org/apache/ofbiz/content/data/DataServicesScript.groovy
@@ -18,15 +18,14 @@
*/
package org.apache.ofbiz.content.data
+import java.sql.Timestamp
+
import org.apache.ofbiz.base.util.UtilDateTime
import org.apache.ofbiz.base.util.UtilProperties
-import org.apache.ofbiz.content.data.DataResourceWorker
import org.apache.ofbiz.entity.GenericValue
import org.apache.ofbiz.service.ModelService
import org.apache.ofbiz.service.ServiceUtil
-import java.sql.Timestamp
-
//Methods for DataResource
/**
* Create a Data Resource
@@ -140,7 +139,7 @@ Map getElectronicText() {
*/
Map attachUploadToDataResource() {
boolean isUpdate = false
- boolean forceLocal = UtilProperties.getPropertyValue('content.properties', 'content.upload.always.local.file')
+ boolean forceLocal = UtilProperties.getPropertyAsBoolean('content.properties', 'content.upload.always.local.file', true)
List validLocalFileTypes = [
'LOCAL_FILE',
'OFBIZ_FILE',