You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/08/30 08:23:00 UTC

[jira] [Commented] (OFBIZ-7112) EntityUtilProperties

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

ASF subversion and git services commented on OFBIZ-7112:
--------------------------------------------------------

Commit 91eb7dcd64e472ff931878fe364a23a3548b9aae in ofbiz-framework's branch refs/heads/trunk from Jacques Le Roux
[ https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=91eb7dcd64 ]

Improved: The big problem when loading seed. (OFBIZ-7754)

Regarding, OFBIZ-7112,
that's good for who start on use the ofbiz with initial setup, but not for the
site that already online and has to update the OFBiz core. Because when has
update OFBiz core they will use command load-seed for update.

The problem is if we use load-seed mean the configuration data that's already
exists will be replaced by the data from this file, CommonSystemPropertyData.xml

So, for my suggestion should change the reader from seed to seed-initial or
remove systemPropertyValue from the data file.

Thanks: Kongrath Suankaewmanee


> EntityUtilProperties
> --------------------
>
>                 Key: OFBIZ-7112
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-7112
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: ALL COMPONENTS
>    Affects Versions: Trunk, Upcoming Branch
>            Reporter: Wai
>            Assignee: Jacques Le Roux
>            Priority: Major
>         Attachments: OFBIZ-7112.patch, OFBIZ-7112.patch, OFBIZ-7112.patch, OFBIZ-7112.patch, OFBIZ-7112.patch
>
>
> Ofbiz reads properties from either a properties file or the entity:SystemProperty. The way it works previously is that ofbiz reads from the entity:SystemProperty first and if there is no value associated with the target propertyname, it would then locate the value from the relevant properties file.
> In other words, if there is a database entry for a property, the database entry should override the associated properties file.
> The issue is that if a database entry exist but the value is empty, it would look for a value from the properties file.  It should not do so.  If a database entry exists for the propertyname of interest, the value should be taken from the database even if it holds an empty value.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)