[ https://issues.apache.org/jira/browse/OFBIZ-13191?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jacques Le Roux reassigned OFBIZ-13191: --------------------------------------- Assignee: Jacques Le Roux (was: Chenghu Shan) > 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 > > 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)