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
The entitymodel.xml for party contains a typo on agreement_facility_appl: it refers to faciliyId instead of facilityId.
This needs urgent fixing as otherwise any DB build done with the wrong definition will generate errors (as the reference is part of a constraint).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1416366 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
To solve this issue, I change bsh script to groovy script.
After the patch application, on the same page, the currency appears near "Your Company Name Here [Company]"
jleroux: actually I did a bit more and rewrote it using safe-navigation and elvis operator, nice to read hèè ;)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1408408 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
When buying drop ship products from the demo store the customer's shipping address is not saved with the purchase order, so the shipping address cannot be provided to the drop ship supplier.
Steps to Reproduce:
* From the DropShip Category add "DropShip from BigSupplier" and "DropShip from DemoSupplier" to your cart.
* Login as admin
* Use the one page checkout to order the products
Resulting Order:
https://demo-trunk.ofbiz.apache.org:8443/ordermgr/control/orderview?orderId=WSCO10002
The purchase orders WS10003 and WS10004 are associated correctly with the order items, but as the shipping groups don't have addresses, the purchase orders don't have either.
Expectation:
All Shipment groups should have the shipping address assigned.
Actual:
Only the first shipment group has the shipping address assigned.
jleroux: thanks to Paul Foxworthy's help I rather removed than deprecate the old methods and replaced them where relevant
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1407116 13f79535-47bb-0310-9956-ffa450edef68
There's a quote within that one product has been released and no valid price set. If try to create order from this quote, NPE exception raised.
=> Check the result return from runSync("loadCartFromQuote")
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1406727 13f79535-47bb-0310-9956-ffa450edef68