Infrastructure icon indicating copy to clipboard operation
Infrastructure copied to clipboard

Email validation AWS main.template does not handle new TLD domains like .global (size hardcoded to 5)

Open obriensystems opened this issue 3 years ago • 2 comments

Describe the bug Email validation on main template does not handle new TLD domains like packet.global for example

Product and Cloud Latest UiPath for AWS

Expected behavior dont force .com, .org domain emails

Additional context fix diff --git a/cloudformation/templates/main.template.yaml b/cloudformation/templates/main.template.yaml index 2964428..7494086 100644 --- a/cloudformation/templates/main.template.yaml +++ b/cloudformation/templates/main.template.yaml @@ -834,7 +834,7 @@ Parameters: Description: High-availability add-on user name. Must be a valid email address. Type: String Default: '[email protected]'

  • AllowedPattern: '^([a-zA-Z0-9_-.]+)@([a-zA-Z0-9_-.]+).([a-zA-Z]{2,5})$'
  • AllowedPattern: '^([a-zA-Z0-9_-.]+)@([a-zA-Z0-9_-.]+).([a-zA-Z]{2,15})$' ConstraintDescription: Must be a valid email address. HAAPassword: Description: High-availability add-on password.

obriensystems avatar May 02 '21 16:05 obriensystems

diff --git a/cloudformation/templates/uipath-orchestrator.template.yaml b/cloudformation/templates/uipath-orchestrator.template.yaml index 83c4b22..757751d 100644 --- a/cloudformation/templates/uipath-orchestrator.template.yaml +++ b/cloudformation/templates/uipath-orchestrator.template.yaml @@ -748,7 +748,7 @@ Parameters: HAAUser: Description: High-aailability add-on user name. Must be a valid email address. Type: String

  • AllowedPattern: '^([a-zA-Z0-9_-.]+)@([a-zA-Z0-9_-.]+).([a-zA-Z]{2,5})$'
  • AllowedPattern: '^([a-zA-Z0-9_-.]+)@([a-zA-Z0-9_-.]+).([a-zA-Z]{2,15})$' ConstraintDescription: Must be a valid email address. HAAPassword:

obriensystems avatar May 02 '21 17:05 obriensystems

to be replaced with:

[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?

AndreiBarbuOz avatar May 11 '21 05:05 AndreiBarbuOz