[ 
https://issues.apache.org/jira/browse/OFBIZ-5949?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jacques Le Roux closed OFBIZ-5949.
----------------------------------
       Resolution: Fixed
    Fix Version/s: 13.07.04
                   15.12.01
                   14.12.01

Thanks Wai,

Your sightly modified patch is in
trunk r1740008
R15.12  r1740009
R14.12  r1740010
R13.07  r1740014

I simply used an UtilValidate.isNotEmpty() method in  EntitySaxReader class

I was initially reluctant to these changes because you can no longer load the 
content of the GlAccountData.xml and ProductStoreData.xml files, or the files 
themselves, using the import XML feature of webtools. But those files are 
specific to the setup component, so they should not be missed, they are 
supposed to be used in this context only.

> ofbizsetup create product store cause exception, remove use of temp file to 
> load entity data
> --------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-5949
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5949
>             Project: OFBiz
>          Issue Type: Bug
>          Components: commonext/setup
>    Affects Versions: Trunk
>            Reporter: Wai
>            Assignee: Jacques Le Roux
>             Fix For: 14.12.01, 15.12.01, 13.07.04
>
>         Attachments: OFBIZ-5949.patch, OFBIZ-5949.patch, OFBIZ-5949.patch
>
>
> The exception is caused by foreign key constraint violation between 
> ShipmentCostEstimate and  CarrierShipmentMethod entities.
> Currently, when creating a new product store using ofbizsetup component 
> default data associated with the product store is loaded into the database 
> using the following steps.
> 1. read default data from entity xml file and replace specific items in the 
> read data and write to temp file.
> 2. use service=parseEntityXmlFile to load the processed file into database.
> The issue with this method is that the temp file can present a problem when 
> ofbiz is operating in multitenant mode.
> The solution is to modify the relevant services so that no temp file needs 
> generated.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to