Provides an additional validation for password with following capability to the system:
Admin can enable/disable pattern based password capability of system. Configuration will reside in security.property file.
To enable : security.login.password.pattern.enable=true
To disable: security.login.password.pattern.enable=false
Admin is flexible to provide his pattern string by making pattern more/less restrictive as per system requirement. Configuration will reside in security.property file.
Example: security.login.password.pattern=^.*(?=. {5,})(?=.[a-zA-Z])(?=.[!@#$%^&*]).*$
Admin can provide custom error message string which will display to end user if wrong password is entered. Configuration will reside in security.properity file.
jleroux: I quickly handled the error message localisation for the OOTB case. It's more complicated when the pattern gets complex...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1418996 13f79535-47bb-0310-9956-ffa450edef68
been fetched. Either list.size() could be used, or, even better, just
decrement the number wanted, and continue until everything is fetched.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1417212 13f79535-47bb-0310-9956-ffa450edef68
allowed. As such, call beforeFirst() instead. Technically, these
broken jdbc drivers should have the same kind of work-around.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1417210 13f79535-47bb-0310-9956-ffa450edef68
This code replaces the possible locale from parameters by default locale.
// add the locale to the context
context.put("locale", Locale.getDefault());
The solution is simple: firstly check, if we have the locale as the parameter, if no, use the default locale.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1413307 13f79535-47bb-0310-9956-ffa450edef68
When a entity have fields createDate, lastModifiedDate, createByUserLogin and updateByUserLogin, the entity-auto engine set them.
Also makes all entities that have one of fields [create|lastModified][Date|ByUserLogin] to be consistent and have four fields
Impacted entityies:
[Quote|Order|Return]Adjustment
OrderPaymentPreference
AcctgTrans
GlReconciliation
ValueLinkKey
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1407578 13f79535-47bb-0310-9956-ffa450edef68
This fix a random issue which appears sometimes on Ubuntu (it seems beginning from Ubuntu 12.04, maybe related to Open jdk)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1402766 13f79535-47bb-0310-9956-ffa450edef68
When a groovy script fails, currently you can only follow the stack trace to rg.ofbiz.base.util.ScriptUtil.executeScript(ScriptUtil.java:348), but not into the failed script itself, which makes debugging really hard.
This can easily be improved by wrapping the exception there:
- throw new IllegalArgumentException(errMsg);
+ throw new IllegalArgumentException(errMsg, e);
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1398679 13f79535-47bb-0310-9956-ffa450edef68
I cannot find the root cause and it's hard to reproduce, but it does happen sometimes. The web browser reports "null object" exception when it tries to evaluate following codes in fieldlookup.js:
{quote}
var obj_caller = (window.opener? window.opener.lookups[num_id]: null);
{quote}
window.opener is there but window.opener.lookups is null.
jleroux: better be safe than sorry, even if it hides the original reason this no functional change can't have any side effects.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1395460 13f79535-47bb-0310-9956-ffa450edef68
The email configuration setting mail.smtp.starttls.enable is ignored by the system.
I encountered this while configuring OFBiz an email server which had TLS enabled.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1395104 13f79535-47bb-0310-9956-ffa450edef68
When i worked with Url Rewrite Filter, i faced the following issue:-
In case of http protocol in the url, https links on th epage were not being rewritten and when their was https url, http links were not rewritten.
The issue behind this what i found is that in RequestHandler.java encodeUrl() is not called in the above given case.
So, if we place response.encodeUrl() their the issue is resolved.
jleroux: This makes sense since we are still in the "if (encode) {" block. I just noticed that response != null was checked above so I placed the same check before encoding
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1394995 13f79535-47bb-0310-9956-ffa450edef68
This has been tested in a custom project and work as expected it does not add any functional features for OFBiz if you don't use external requests in controllers. So should have any impacts OOTB
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1391037 13f79535-47bb-0310-9956-ffa450edef68
The PKs are used to keep track of which nodes have been rendered when performing recursion inside Tree Widget rendering code.
Currently Multiple PKs Entities can't be used as nodes in a Tree Widget because the rendering code does not handle them.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1387884 13f79535-47bb-0310-9956-ffa450edef68