When specifying the ignore-if-empty attribute inside an entity-constraint in an entity-options a NPE will be thrown whenever the env-name of this entity-constraint is empty.
The error occurs because a null condition is created for the entity-constraint.
When validateSql get called in
org.ofbiz.entity.condition.EntityJoinOperator.validateSql(EntityJoinOperator.java:178)
there is no null checking so when
condition.checkCondition(modelEntity);
gets called an NPE is thrown.
The patch modifies the code in
framework/widget/src/org/ofbiz/widget/form/ModelFormField.java
to avoid the inclusion of a null condition to the entity-options.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340826 13f79535-47bb-0310-9956-ffa450edef68
Reported by Kiran:
In the screen widget, add a set action that refers to sessionAttributes, it doesn't work.
e.g: Following doesn't work:
<set field="titleProperty" value="${sessionAttributes.autoName}"/>
Following works:
<set field="titleProperty" from-field="autoName" from-scope="user"/>
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340821 13f79535-47bb-0310-9956-ffa450edef68
For a Survey Question of Type= Selected option, while trying to edit a survey question option the following error is encountered :
In set-pk-fields a value was not found with the specified valueAcsr: lookupKeyValue, not setting fields
URL : https://demo-trunk.ofbiz.apache.org:8443/content/control/EditSurveyQuestions?surveyId=1501
Screenlet:
Survey Options .
jleroux: this screen is not much user friendly (for instance when you edit the survey question option you are not redirected to the screenlet anchor)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340661 13f79535-47bb-0310-9956-ffa450edef68
* ant-trax-1.8.0.jar
* Tidy.jar (not the one with Birt, will be moved to Attic with Birt later)
* commons-vfs-20070730.jar
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340641 13f79535-47bb-0310-9956-ffa450edef68
"As of creating new BeansWrapper, be sure you create it only once during the application life-cycle and then reuse the same instance, or else it will have to rebuild the class introspection cache again and again."
Thanks to Adam Heath for the comment.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340631 13f79535-47bb-0310-9956-ffa450edef68
Split Into Multiple Shipment Button is not working on quick checkout page
jleroux: part the current known issue with Freemarker and findByAnd(), it works well on both sides (Order Manager and eCommerce)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340415 13f79535-47bb-0310-9956-ffa450edef68
Moves to Attic:
framework/base/lib/ant/ant-nodeps-1.8.1.jar => can be removed IMO. It was added with ant 1.8 by Hans, not sure why (no comment about need), seems to contains no needed stuff
framework/base/lib/javacc can be removed IMO. The Java Compiler Compiler tm (JavaCC tm) - The Java Parser Generator, not used OOTB, was added by Marco, not sure why (no comment about need)
framework/base/lib/Tidy.jar was used at bottom of eCommerce pages before, no longer needed
framework/base/lib/ant-trax-1.8.0.jar can be removed IMO. It was added with ant 1.8 by Hans, not sure why (no comment about need), contains XSLT task
framework/base/lib/commons/commons-vfs-20070730.jar certainly added with Webslinger can be removed now
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340414 13f79535-47bb-0310-9956-ffa450edef68
If an entity field type is "Date" (YYYY-MM-DD), in edit or create form of webtools, the component of this field is redered as "timestamp".
Update the ViewGeneric.ftl to change the related "shortDateInput" from false to true resolves this problem.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340405 13f79535-47bb-0310-9956-ffa450edef68
If the shipgroup does not have a carrierPartyId (which is the case, if an order does not need shipping and its shipping method is NA), there is an FTL-error.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340400 13f79535-47bb-0310-9956-ffa450edef68
If click the "update" button of "Shipping Destination Address" in order view page, an exception thrown out as:
The Following Errors Occurred:
BeanShell execution caused an error: Sourced file: inline evaluation of: `` shipmentMethod = parameters.get("shipmentMethod"); if(s . . . ''
I searched the log and find the root cause is "java.lang.ArrayIndexOutOfBoundsException" from bsh script. As Paul told, there should be at least two "@" chars in "shipmentmethod" value. So I guess maybe somewhere "@" is missing. I tried to lookup for codes which construct parameters map for calling, and fortunately, I found it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340352 13f79535-47bb-0310-9956-ffa450edef68
This can be useful to improve code like:
cache.putIfAbsent("key", "value");
value = cache.get("key"); // if a concurrent thread has cleared the cache the value could be null
into this:
value = cache.putIfAbsentAndGet("key", "value");
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340351 13f79535-47bb-0310-9956-ffa450edef68
jleroux: I reviewed the English part (and the licenses in NL part) and only fixed a typo in EN/Help_MFG_ProductionRunCosts.xml (was prouction). I also wondered about the new content of Help_MFG_FindInventoryEventPlan, but it's quite correct
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340273 13f79535-47bb-0310-9956-ffa450edef68
"Since BeansWrapper.getDefaultInstance() returns an instance that is
shared in the scope of the class-loader that defined the FreeMarker
classes, and since possibly multiple independently developed
components in your system use FreeMarker and thus getDefaultInstance
(and you may don't even know about it), and since the returned
BeanWrapper can be configured (not read-only), you never know how the
returned BeanWrapper is configured. So you add a 3rd party component,
and if you are unlucky, suddenly your other component is broken.
As of creating new BeansWrapper, be sure you create it only once
during the application life-cycle and then reuse the same instance, or
else it will have to rebuild the class introspection cache again and
again."
I have replaced the usage of the static instance of the BeansWrapper with a newly created object.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1339504 13f79535-47bb-0310-9956-ffa450edef68