Author: jleroux
Date: Wed Jul 3 13:33:19 2019 New Revision: 1862473 URL: http://svn.apache.org/viewvc?rev=1862473&view=rev Log: "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 ------------------------------------------------------------------------ Modified: ofbiz/ofbiz-plugins/branches/release17.12/ (props changed) ofbiz/ofbiz-plugins/branches/release17.12/ecommerce/minilang/customer/CustomerEvents.xml Propchange: ofbiz/ofbiz-plugins/branches/release17.12/ ------------------------------------------------------------------------------ --- svn:mergeinfo (original) +++ svn:mergeinfo Wed Jul 3 13:33:19 2019 @@ -11,4 +11,4 @@ /ofbiz/branches/multitenant20100310/plugins:921280-927264 /ofbiz/branches/release13.07/plugins:1547657 /ofbiz/ofbiz-framework/trunk:1836107 -/ofbiz/ofbiz-plugins/trunk:1819576,1819580,1819582,1819589,1820962,1820973,1821045,1821049,1821051,1822129,1822133,1822139,1822143,1822145,1822389,1822391,1822395,1824646,1824648,1824650,1824654,1828569,1830856,1831084,1832727,1832800,1837796,1837845,1837857,1838249,1838381,1838816,1841650,1845558,1847272,1847346,1847398,1847528,1847530,1848009,1848396,1848398,1848921,1849119,1851002,1851068,1851135,1851185,1852988,1855082,1856802,1856917,1857120,1857173,1858141,1858244,1858285,1858312,1859012,1859735,1859893,1859906,1860648,1860801,1861824,1861904,1861986 +/ofbiz/ofbiz-plugins/trunk:1819576,1819580,1819582,1819589,1820962,1820973,1821045,1821049,1821051,1822129,1822133,1822139,1822143,1822145,1822389,1822391,1822395,1824646,1824648,1824650,1824654,1828569,1830856,1831084,1832727,1832800,1837796,1837845,1837857,1838249,1838381,1838816,1841650,1845558,1847272,1847346,1847398,1847528,1847530,1848009,1848396,1848398,1848921,1849119,1851002,1851068,1851135,1851185,1852988,1855082,1856802,1856917,1857120,1857173,1858141,1858244,1858285,1858312,1859012,1859735,1859893,1859906,1860648,1860801,1861824,1861904,1861986,1862466 Modified: ofbiz/ofbiz-plugins/branches/release17.12/ecommerce/minilang/customer/CustomerEvents.xml URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/branches/release17.12/ecommerce/minilang/customer/CustomerEvents.xml?rev=1862473&r1=1862472&r2=1862473&view=diff ============================================================================== --- ofbiz/ofbiz-plugins/branches/release17.12/ecommerce/minilang/customer/CustomerEvents.xml (original) +++ ofbiz/ofbiz-plugins/branches/release17.12/ecommerce/minilang/customer/CustomerEvents.xml Wed Jul 3 13:33:19 2019 @@ -168,6 +168,20 @@ under the License. </if-compare> </else> </if-compare> + <if-compare operator="not-equals" field="parameters.UNUSEEMAIL" value="on"> + <if> + <condition> + <not> + <if-regexp field="parameters.USERNAME" expr="^[a-zA-Z0-9_-]+$"></if-regexp> + </not> + </condition> + <then> + <add-error> + <fail-property resource="PartyUiLabels" property="NotValidUserName"/> + </add-error> + </then> + </if> + </if-compare> <!-- Create the Home Phone --> <if-not-empty field="parameters.CUSTOMER_HOME_CONTACT"> |
Free forum by Nabble | Edit this page |