This is an automated email from the ASF dual-hosted git repository.
jleroux pushed a commit to branch release24.09
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/release24.09 by this push:
new 37fe4cc5d5 Fixed: OFBiz Setup failing to setup the product store
(OFBIZ-13211)
37fe4cc5d5 is described below
commit 37fe4cc5d5ccb151805af87a966c47aac93c7586
Author: Jacques Le Roux <[email protected]>
AuthorDate: Tue Feb 18 11:30:06 2025 +0100
Fixed: OFBiz Setup failing to setup the product store (OFBIZ-13211)
In a clan installation, the Product Store screen in OFBiz Setup fails to
update.
The method createProductStoreWithDefaultSetting is expecting the table
ShipmentMethodType to be empty to insert the seed data from
OfbizSetupShippingData.xml.
But because OFBIZ-12608 introduced new seed data that inserts one record in
ShipmentMethodType, the condition expecting the table to be empty is not met
anymore and then the shipping data is not initialized.
Thanks: Carlos Guzman
jleroux: while at it update ofbiz-setup.adoc. We no longer use Ant.
---
applications/commonext/minilang/setup/SetupEvents.xml | 13 +++++--------
applications/commonext/src/docs/asciidoc/ofbiz-setup.adoc | 4 ++--
2 files changed, 7 insertions(+), 10 deletions(-)
diff --git a/applications/commonext/minilang/setup/SetupEvents.xml
b/applications/commonext/minilang/setup/SetupEvents.xml
index e2924365a4..697d8ec32c 100644
--- a/applications/commonext/minilang/setup/SetupEvents.xml
+++ b/applications/commonext/minilang/setup/SetupEvents.xml
@@ -434,14 +434,11 @@
<set field="organizationPartyId" from-field="parameters.partyId"/>
<!-- Create default data of ProductStoreShipmentMeth,
ShipmentMethodType , CarrierShipmentMethod, and ShipmentCostEstimate. -->
- <entity-condition entity-name="ShipmentMethodType"
list="shipmentMethodTypeList"/>
- <if-empty field="shipmentMethodTypeList">
- <!-- run demo Shipping -->
- <set field="importShippingCtx.filename"
value="${sys:getProperty('ofbiz.home')}/applications/commonext/data/OfbizSetupShippingData.xml"/>
- <session-to-field field="importShippingCtx.userLogin"
session-name="userLogin"/>
- <call-service service-name="entityImport"
in-map-name="importShippingCtx"/>
- <check-errors/>
- </if-empty>
+ <!-- run demo Shipping -->
+ <set field="importShippingCtx.filename"
value="${sys:getProperty('ofbiz.home')}/applications/commonext/data/OfbizSetupShippingData.xml"/>
+ <session-to-field field="importShippingCtx.userLogin"
session-name="userLogin"/>
+ <call-service service-name="entityImport"
in-map-name="importShippingCtx"/>
+ <check-errors/>
<!-- Import Default ProductStore & Shipment data -->
<set field="placeholderValues.orgPartyId" from="organizationPartyId"/>
diff --git a/applications/commonext/src/docs/asciidoc/ofbiz-setup.adoc
b/applications/commonext/src/docs/asciidoc/ofbiz-setup.adoc
index 62a99f2164..b553ff538e 100644
--- a/applications/commonext/src/docs/asciidoc/ofbiz-setup.adoc
+++ b/applications/commonext/src/docs/asciidoc/ofbiz-setup.adoc
@@ -38,8 +38,8 @@ For having OFBiz ready to be setup, it's needed to load data
from reader seed an
. Open a new terminal.
. Go to your ofbiz directory.
-. Clean out all built classes with : ./ant clean-all
-. start with a database clean and empty
+. Clean out all built classes with : gradlew cleanAll
+. Start with a database clean and empty. If you use Derby it's already done
with previous command.
. Load the seed data with gradlew "ofbiz --load-data readers=seed,seed-initial"
. Create the admin user with login name MyUserName and default password with
value "ofbiz":
gradlew loadAdminUserLogin -PuserLoginId=MyUserName