Github user imesh commented on a diff in the pull request: https://github.com/apache/stratos/pull/298#discussion_r29761431 --- Diff: components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/api/StratosApiV41Utils.java --- @@ -2751,15 +2751,16 @@ public static void addTenant(org.apache.stratos.common.beans.TenantInfoBean tena UserRegistry userRegistry = (UserRegistry) PrivilegedCarbonContext.getThreadLocalCarbonContext(). getRegistry(RegistryType.USER_GOVERNANCE); if (userRegistry == null) { - log.error("Security alert! User registry is null. A user is trying create a tenant " - + " without an authenticated session."); - throw new RestAPIException("Security alert! User registry is null. A user is trying create a tenant " - + " without an authenticated session."); + String msg="Security alert! User registry is null. A user is trying create a tenant " --- End diff -- If this is a security alert, IMO we should not raise it to the client. It can be logged in the backend and raise a different error message to the client.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---