0dd95cedbfa1e1d347f5e42161c2b8ec13a564ea
As reported by Martin Kreidenweis
The conditions don't work when updating (not creating) entities using the Delegator.storeAll() method. E.g. the following condition does not work:
<eca entity="Product" operation="create-store" event="return">
<condition field-name="autoCreateKeywords" operator="not-equals" value="N"/>
<action service="indexProductKeywords" mode="sync" value-attr="productInstance"/>
</eca>
The indexProductKeywords service is called anyway when the product is updated and the autoCreateKeywords was "N" and stays "N". It works correctly for newly created products.
The problem is in the method GenericDelegator.storeAll(), where unchanged field values are not passed down to the store() method. The store method calls the ECA engine, which does not receive the unchanged values at all and thus cannot evaluate the EECA conditions correctly.
Scott's comment:We could consider having EntityEcaCondition.eval() perform a db lookup if any of the fields it needs to evaluate are missing. If they are missing it could fully populate the entity with the missing fields so that a lookup is only required at most once per delegator operation. If no ECA conditions require any missing fields then the lookup wouldn't be performed, so the performance penalty would only be incurred when necessary.
Anne: I've created a patch modeled after Scott's suggestion. I'd appreciate someone reviewing it. It does work for me, however I am concerned that it might fail when the value of a field that is part of the EECA condition is being changed from non-null to null using GenericDelegator.storeAll, because of the way storeAll works. There may be a simple solution I've missed.
jleroux: After reviewing and waiting for Anne's feedback, I commit because even if in some cases it would not work it's at least better than current situation
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1716319 13f79535-47bb-0310-9956-ffa450edef68
A patch from Anne Jessel for "Entity ECAs not triggered correctly when using Delegator.storeAll() method" https://issues.apache.org/jira/browse/OFBIZ-3847
Implements "Can not display product category name in Unicode." https://issues.apache.org/jira/browse/OFBIZ-6739
An improved patch from Pierre Gaudin for "JGrowl to display alerts " https://issues.apache.org/jira/browse/OFBIZ-6023
No functional change, "load-tenant-admin-user-login" is not a main target and should be only used being called by other targets. Then there should not be a description, it's confusing! See this comment and comments above https://issues.apache.org/jira/browse/OFBIZ-5757?focusedCommentId=14338165
A patch from Pierre Smits for "SQL Exceptions (OPTION) occuring when running OFBiz 13.07.02 against MySQL" https://issues.apache.org/jira/browse/OFBIZ-6582
Welcome to Apache OFBiz!
All you need to run OFBiz is a 1.8 (version 8) JDK
(not just the JRE, the full JDK).
http://www.oracle.com/technetwork/java/javase/downloads/index.html
You can load the demo data (strongly advised if you are new to
OFBiz) with the following command on the command line
from the OFBiz home folder (in Unix-like operating systems
type "./ant" rather than "ant" to use the embed ant version
if you haven't installed it on your system) :
ant load-demo
Then start OFBiz:
ant start
(or "java -Xms128M -Xmx512M -jar ofbiz.jar")
(you can also run directly "ant load-demo start")
Once OFBiz starts, you can look at the demo storefront at:
http://localhost:8080/ecommerce
the back office at:
https://localhost:8443/ordermgr
and the administration interface at:
https://localhost:8443/webtools
You can log in with the user "admin" and password "ofbiz".
To stop OFBiz:
ant stop
To get the list of available commands:
ant -p
You will also find several platform dependent scripts in the
"tools" folder (for example for Windows and Unix-like operating
systems, the startup scripts are startofbiz.bat and startofbiz.sh).
Note that the default configuration uses an embedded Java database
(Apache Derby) and embedded application server components such as
Tomcat, Geronimo (transaction manager), etc.
For more details about OFBiz please visit the OFBiz Documentation page:
http://ofbiz.apache.org/documentation.html
In this page you will find links to useful guides such as:
* "Demo and Test Setup Guide"
* "Basic Production Setup Guide"
* "A Beginners Development Guide"
If you would like to get in touch with the OFBiz community of users and
developers, the following page will help to get started:
http://ofbiz.apache.org/community.html
Enjoy!
=========================================================================
== BIS Crypto TSU exception notice ==
=========================================================================
This distribution includes cryptographic software. The country in
which you currently reside may have restrictions on the import,
possession, use, and/or re-export to another country, of
encryption software. BEFORE using any encryption software, please
check your country's laws, regulations and policies concerning the
import, possession, or use, and re-export of encryption software, to
see if this is permitted. See <http://www.wassenaar.org/> for more
information.
The U.S. Government Department of Commerce, Bureau of Industry and
Security (BIS), has classified this software as Export Commodity
Control Number (ECCN) 5D002.C.1, which includes information security
software using or performing cryptographic functions with asymmetric
algorithms. The form and manner of this Apache Software Foundation
distribution makes it eligible for export under the License Exception
ENC Technology Software Unrestricted (TSU) exception (see the BIS
Export Administration Regulations, Section 740.13) for both object
code and source code.
The following provides more details on the included cryptographic
software:
* Various classes in OFBiz, including DesCrypt, HashCrypt, and
BlowFishCrypt use libraries from the Sun Java JDK API including
java.security.* and javax.crypto.* (the JCE, Java Cryptography
Extensions API)
* Other classes such as HttpClient and various related ones use
the JSSE (Java Secure Sockets Extension) API
=========================================================================
Languages
Java
66.9%
FreeMarker
15.3%
Groovy
10.5%
JavaScript
4.6%
CSS
2.1%
Other
0.4%