-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Closed
Labels
Fixed in 2.3.xThe issue has been fixed in 2.3 release lineThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedGate 2 Passed. Manual verification of the issue description passedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedGate 1 Passed. Automatic verification of issue format passedbug report
Description
When using a UI Component and adding the "stripped-min-length" validation as a rule to an input component, if the user inputs a "special" character (e.g. /, &, etc.) a javascript error is thrown.
Preconditions
- Magento EE 2.1.7, Magento CE 2.1.7
- PHP 7.0.17
- MySQL 5.7.18
Steps to reproduce
-
Create a UI Component based form
-
Add the following validation to the XML form element definition
<item name="validation" xsi:type="array"> <item name="required-entry" xsi:type="boolean">true</item> <item name="no-whitespace" xsi:type="boolean">true</item> <item name="stripped-min-length" xsi:type="string">4</item> </item> -
Test in admin using value
a/borab/ora&c
Expected result
- Element should be invalidated due to length restriction
Actual result
Metadata
Metadata
Assignees
Labels
Fixed in 2.3.xThe issue has been fixed in 2.3 release lineThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedGate 2 Passed. Manual verification of the issue description passedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedGate 1 Passed. Automatic verification of issue format passedbug report

