From 9fa8357112640fe440b9c08cde7b7c55d3ea89bb Mon Sep 17 00:00:00 2001 From: Jacques Le Roux Date: Wed, 3 Jul 2019 13:33:19 +0000 Subject: [PATCH] "Applied fix from plugins for revision: 1862466 " ------------------------------------------------------------------------ r1862466 | jleroux | 2019-07-03 15:30:28 +0200 (mer. 03 juil. 2019) | 20 lignes Fixed: Error message is displayed when user having space in username logs in at ecommerce (OFBIZ-10671) Steps to regenerate: # Open URL: [https://demo-trunk.ofbiz.apache.org/ecommerce/control/main] # Click on register in header section # Provide all the mandatory information but provide a user name such that is contains a space (like: Walter White or Jesse Pinkman) # Click on save button Actual: When user clicks on save button then he is redirected to main page of ecommerce and an error message is displayed. Similarly when user with space in username tries to login, error message is displayed. Praven: Added standard regex for username allowed alphabets, numbers, and _- jleroux: actually "-" was missing in the regepx definition. Thanks: Arpit Mor for report and Praveen Sharma for the fix ------------------------------------------------------------------------ git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/branches/release17.12@1862473 13f79535-47bb-0310-9956-ffa450edef68 --- ecommerce/minilang/customer/CustomerEvents.xml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ecommerce/minilang/customer/CustomerEvents.xml b/ecommerce/minilang/customer/CustomerEvents.xml index c0a47785a..8d97c34fc 100644 --- a/ecommerce/minilang/customer/CustomerEvents.xml +++ b/ecommerce/minilang/customer/CustomerEvents.xml @@ -168,6 +168,20 @@ under the License. + + + + + + + + + + + + + +