RSA DLP Enterprise Manager does not accept URLs ending with * or starting with * in transmission attributes
Originally Published: 2015-11-28
Article Number
Applies To
RSA Product/Service Type: Enterprise Manager
RSA Version/Condition: 9.6 and above
Platform: Windows
Issue
Resolution
To allow for the asterisk to be used at the beginning or end of a URL, perform the steps below.
- Login to Enterprise manager and edit the following file: RSA/enterprise manager/webapps/root/script/validation.js
- Edit the above file and search for the following function: validateHttpOrFtpUrl
The above function specifies the regex to validate the URLs. By default, it has the following setting:
function validateHttpOrFtpUrl(url) {
if (!url){url = '';} else {url = url.trim();}
var httpOrFtpUrlRegex = /^(?:(?:ht|f)tp(?:s?)\:\/\/|~\/|\/)(?:\w+:\w+@)?(?:(?:(?:[-\w*?]+\.)+(?:com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|corp|jobs|museum|local|travel|[a-z]{2}|(?:\d|[01]?\d\d|2[0-4]\d|25[0-5])))|(?:(?:\[?(?:(?:(?:[0-9A-Fa-f]{1,4}:){7}(?:[0-9A-Fa-f]{1,4}|:))|(?:(?:[0-9A-Fa-f]{1,4}:){6}(?::[0-9A-Fa-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9A-Fa-f]{1,4}:){5}(?:(?:(?::[0-9A-Fa-f]{1,4}){1,2})|(?:(?::[0-9A-Fa-f]{1,4}){0,1}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9A-Fa-f]{1,4}:){4}(?:(?:(?::[0-9A-Fa-f]{1,4}){1,3})|(?:(?::[0-9A-Fa-f]{1,4}){0,1}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9A-Fa-f]{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{2})*)?$/;
return httpOrFtpUrlRegex.test(url);
} - Change the above settings as shown below.
function validateHttpOrFtpUrl(url) {
if (!url){url = '';} else {url = url.trim();}
var httpOrFtpUrlRegex = /^(http|https|ftp)\:\/\/([a-zA-Z0-9\.\-\*]+(\:[a-zA-Z0-9\.&%\$\-]+)*@)*((25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9])\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[0-9])|localhost|([a-zA-Z0-9\-]+\.)*[a-zA-Z0-9\-\*\.]+\.(com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|jobs|museum|local|travel|[a-zA-Z]{2}))(\:[0-9]+)*(\/($|[a-zA-Z0-9\.\,\?\*\'\\\+&%\$#\=~_\-]+))*$/;
return httpOrFtpUrlRegex.test(url);
} - After the above function regex is changed, save the file and restart the EM services.
Related Articles
RSA Identity Governance and Lifecycle Access Fulfillment Express (AFX) AD connector does not accept more than 26 parameters 95Number of Views Smart Card Logon certificate not accepted 37Number of Views In Rest Web Service Node, the Response Variables does not appear to accept Integer or Boolean values in RSA Governance & L… 56Number of Views RSA Identity Governance and Lifecycle version 6.9.1 review does not accept the password with hash special character # 19Number of Views RSA Software token application does not work on Android 10 24Number of Views
Trending Articles
Passwordless Authentication in Windows MFA Agent for Active Directory – Quick Setup Guide RSA Authentication Manager 8.9 Release Notes (January 2026) RSA Authentication Manager Upgrade Process RSA Authentication Manager 8.7 SP2 Setup and Configuration Guide An example of SSO using SAML and ADFS with RSA Identity Management and Governance 6.9.x
Don't see what you're looking for?