svn commit: r1825436 - /ofbiz/ofbiz-framework/trunk/framework/security/ofbiz-component.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1825436 - /ofbiz/ofbiz-framework/trunk/framework/security/ofbiz-component.xml

Taher Alkhateeb
Author: taher
Date: Tue Feb 27 10:41:14 2018
New Revision: 1825436

URL: http://svn.apache.org/viewvc?rev=1825436&view=rev
Log:
Fixed: a bug in loading seed-only data into the system

When calling OFBiz with the command gradlew "ofbiz -l readers=seed-initial"
the system crashes. The reason is because of a faulty dependency of
"seed-initial" data in the entityext component to "seed" data in the security
component. The fix is simply to change the type of reader for the requested
data in SecurityPermissionSeedData.xml from "seed" to "seed-initial"

Modified:
    ofbiz/ofbiz-framework/trunk/framework/security/ofbiz-component.xml

Modified: ofbiz/ofbiz-framework/trunk/framework/security/ofbiz-component.xml
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/framework/security/ofbiz-component.xml?rev=1825436&r1=1825435&r2=1825436&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/framework/security/ofbiz-component.xml (original)
+++ ofbiz/ofbiz-framework/trunk/framework/security/ofbiz-component.xml Tue Feb 27 10:41:14 2018
@@ -26,7 +26,7 @@ under the License.
     <classpath type="dir" location="dtd"/>
 
     <entity-resource type="model" reader-name="main" loader="main" location="entitydef/entitymodel.xml"/>
-    <entity-resource type="data" reader-name="seed" loader="main" location="data/SecurityPermissionSeedData.xml"/>
+    <entity-resource type="data" reader-name="seed-initial" loader="main" location="data/SecurityPermissionSeedData.xml"/>
     <!-- NOTE: comment this line out to ensure no resetting of passwords -->
     <entity-resource type="data" reader-name="demo" loader="main" location="data/PasswordSecurityDemoData.xml"/>
     <entity-resource type="data" reader-name="demo" loader="main" location="data/SecurityGroupDemoData.xml"/>