[
https://issues.apache.org/jira/browse/OFBIZ-13191?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jacques Le Roux closed OFBIZ-13191.
-----------------------------------
Fix Version/s: 24.09.01
Resolution: Fixed
Thanks Chenghu Shan for report and fix idea
> Bug persisting uploaded files with service attachUploadToDataResource
> ---------------------------------------------------------------------
>
> Key: OFBIZ-13191
> URL: https://issues.apache.org/jira/browse/OFBIZ-13191
> Project: OFBiz
> Issue Type: Bug
> Components: content
> Affects Versions: Upcoming Branch
> Reporter: Chenghu Shan
> Assignee: Jacques Le Roux
> Priority: Minor
> Fix For: 24.09.01
>
>
> There is a bug in DataServicesScript::attachUploadToDataResource which causes
> this service to be unable to save uploaded files to the database.
> There is a boolean property "forceLocal" which is filled by the method
> UtilProperties.getPropertyAsValue. This method returns a string instead of a
> boolean which causes Groovy to interpret this value as "true" even if you
> configure that property to be "false".
> You can work around this problem by using an empty string in your properties
> when you want this boolean to be "false".
> A solution would be to use UtilProperties.getPropertyAsBoolean instead.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)