This is a step toward thread-safety, but the class still isn't thread-safe. It would be best if this class was immutable, but that will require a lot of re-engineering.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1476826 13f79535-47bb-0310-9956-ffa450edef68
Make sure an immutable GenericEntity really is immutable. Also fixed deserialization of the new Observable object.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1471283 13f79535-47bb-0310-9956-ffa450edef68
Also replaced java.util.Observable with org.ofbiz.base.util.Observable. Anyone using the Observable functionality will need to change their imports.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1470392 13f79535-47bb-0310-9956-ffa450edef68
The LoginServices only specify that a user was not found, but it is of interest which user was not found.
I added that to the log message in the error case.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1470391 13f79535-47bb-0310-9956-ffa450edef68
Yesterday, I faced a weird bug in properties management.
For a reason, a copy of a project slipped in the project itself (like if you had a copy of ofbiz root in ofbiz root).
And in this project a properties file (in a hotdeploy component) as the same name than the project (like ofbiz.properties)
Then, as properties for this file, I got all the content of the sub-dir (here would be the files in ofbiz/ofbiz) instead of the properties
This fixes it, no performance issues since properties are cached so properties file are only accessed once
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1470176 13f79535-47bb-0310-9956-ffa450edef68
To merge two or more maps on one map with <map-to-map> element on mini-lang doesn't work.
example :
<call-service service-name="accReport-header" in-map-name="headerMap">
<result-to-field result-name="jrParameters" />
</call-service>
<map-to-map map="reportParameters" to-map="jrParameters"/>
<map-to-map map="parameters" to-map="jrParameters"/>
This doesn't work because the map-to-map method doesn't accept to merge an existing to-map and the <map-to-map map="parameters" to-map="jrParameters"/> has been ignored
The patch move the map merge function to run it when a map is given.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1470151 13f79535-47bb-0310-9956-ffa450edef68
Extension of minipromotext.ftl to get more common look for this subscreen of ecommerce. Patch and screenshot will be attached.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1470136 13f79535-47bb-0310-9956-ffa450edef68
1. Make "password must be different from last passwords" function work. (--// FIXME: switching to salt-based hashing breaks this history lookup below)
2. When there's error occurs, return "requirePasswordChange" instead of "error". Then, "password change" form will not be redirected to "login" form if there's any kind of "error".
3. Fix one "deprecated" findByAnd call.
4. Return the "error" message instead of "event" message when password expires.
5. Chinese translation for "password expiration alert" and "password expired" message.
jleroux: I only reviewed (no tests) but seems good to me
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1470127 13f79535-47bb-0310-9956-ffa450edef68
When sending emails, there are warning messages in log:
2012-10-09 16:07:20,100 (default-invoker-Thread-9) [ Converters.java:102:WARN ] *** No converter found, converting from org.ofbiz.service.mail.MimeMessageWrapper to java.lang.String. Please report this message to the developer community so a suitable converter can be created. ***
2012-10-09 16:07:20,101 (default-invoker-Thread-9) [ ObjectType.java:540:WARN ] No special conversion available for org.ofbiz.service.mail.MimeMessageWrapper to String, returning object.toString().
I added a MimeMessageToString converter in MimeMessageWrapper.java to resolve this problem.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1468780 13f79535-47bb-0310-9956-ffa450edef68
Files "framework/base/lib/scripting/jansi-1.2.1.jar" and "framework/base/lib/scripting/jline-0.9.94.jar" have been deleted but no corresponding change to .classpath.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1466976 13f79535-47bb-0310-9956-ffa450edef68
int org.ofbiz.base.util.UtilValidate.java file:
public static final String isMinuteMsg = "The Hour must be a number between 0 and 59.";
public static final String isSecondMsg = "The Hour must be a number between 0 and 59.";
should be
public static final String isMinuteMsg = "The Minute must be a number between 0 and 59.";
public static final String isSecondMsg = "The Second must be a number between 0 and 59.";
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1465351 13f79535-47bb-0310-9956-ffa450edef68