|Applies To||RSA Product Set: RSA Identity Governance & Lifecycle|
RSA Version/Condition: 7.0.0, 7.0.1, 7.0.2
The Oracle AFX connector errors out when a dollar sign ($) is used in the password while running the capabilities having the password attribute.
Steps to reproduce
java.lang.StringIndexOutOfBoundsException: String index out of range.
b. When the dollar sign is used as the first character of a password or in the middle of a password ($password or pas$word) the following error displays:
java.lang.IllegalArgumentException: Illegal group reference.
|Cause||String methods like replaceAll and replaceFirst use patterns and regex. Here, the dollar sign character is a metacharacter and has special meaning in regular expressions (it means the end of input). So this needs to be escaped to keep it as a literal character in the input string. Since this was not done, the replaceFirst() function failed and threw the exception.|
|Resolution||This issue is fixed in 7.0.2 P06. Deploy the patch to have the issue fixed.|
|Workaround||An immediate workaround will be to escape the special characters of regex in passwords.|