-
Notifications
You must be signed in to change notification settings - Fork 10
Description
Is your feature request related to a problem? Please describe.
We require more validation in MIG when creating and updating destinations.
Describe the solution you'd like
Destination Name
and AETitle
both require validation to not allow special characters (non a-z, A-Z, 0-9) or spaces.
Destination Address
requires new validation to only allow a valid IP address value or a valid hostname. Examples of regex for both are below:
IP address regex
^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]).){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$
Hostname regex
^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-][a-zA-Z0-9]).)([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9])$
Destination Port
requires new validation to only allow port numbers between 1 and 65535. Example regex below:
^([1-9][0-9]{0,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])$
Activity
mocsharp commentedon Dec 6, 2022
Closing as completed in #261