A "Region names may only be alphanumeric and may contain hyphens or underscores" error occurs in SAS® Infrastructure for Risk Management


Issues occur when you try to access instances from the SAS Infrastructure for Risk Management user interface (UI) when the logged-on user contains a user ID with special (@) characters. As a result, an illegal argument exception occurs when you create the region as part of Apache Geode. 

In addition, the following error occurs in the SASServer8_1 server.log file on the middle-tier machine:

<SASConfig>/<Lev#>/Web/WebAppServer/SASServer8_1/logs/server.log

[date time],863 ERROR (tomcat-http--31) [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/SASIRMServer].[irmwebdav]] Servlet.service() for servlet [irmwebdav] in context with path [/SASIRMServer] threw exception
java.lang.IllegalArgumentException: Region names may only be alphanumeric and may contain hyphens or underscores: myuserID@mydomain.com
    at org.apache.geode.internal.cache.RegionNameValidation.validate
(RegionNameValidation.java:75) ~[geode-core-1.15.1.jar:?]

    at org.apache.geode.internal.cache.LocalRegion.createSubregion
(LocalRegion.java:911) ~[geode-core-1.15.1.jar:?]

    at org.apache.geode.internal.cache.LocalRegion.createSubregion
(LocalRegion.java:858) ~[geode-core-1.15.1.jar:?]

    [...]

Workaround

To work around this issue, remove the special character in the user name.

Resolution

A code fix for the issue was included in SAS® Infrastructure for Risk Management 3.7 Hot Fix M2Q003. Apply the latest SAS Infrastructure for Risk Management 3.7 Hot Fix to obtain the code fix.

See SAS Infrastructure for Risk Management 3.7 | Hot Fix Downloads for additional information.