Incorrect validation of email addresses
An application is built on the Pega Service case Manager for Financial Services.
User needs to create an outbound email rule which contains in the "From" field an address like this: [email protected]ch.
When the user try to save the rule they get a validation error.
User interface shows the following message:
"Please enter a valid sender email address"
Steps to Reproduce
- Create an outbound email rule.
- Use in the "From" field an email address which ends with an extension that has a length of 2 (for example [email protected]).
There is bug in the ValidEmailAddress validate rule defined in the PegaFSSCM:07-21-01 ruleset.
This error is triggered by the Edit validate rule "ValidEmailAddress" , that checks if the last part of an email (in this case "ch") has a length more than or equal to 2.
Perform the following local-change:
- Resave the Edit Validate rule in to the application ruleset.
- Modify the code to change the logic from:
if( lastToken.length() <2) return false;
33.333333333333% found this useful