You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Jacques Le Roux (Jira)" <ji...@apache.org> on 2024/12/06 15:12:00 UTC

[jira] [Commented] (OFBIZ-13191) Bug persisting uploaded files with service attachUploadToDataResource

    [ https://issues.apache.org/jira/browse/OFBIZ-13191?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17903678#comment-17903678 ] 

Jacques Le Roux commented on OFBIZ-13191:
-----------------------------------------

It's broken by OFBIZ-11469 in 2021 so no need to backport in 18.12

> 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)